In Oracle, usa la funzione ASCII per ottenere il valore ASCII di una stringa.
Sintassi
La funzione ASCII accetta un carattere singolo come argomento e restituisce il valore numerico .
ASCII (char)
Esempio di funzione ASCII Oracle
L'esempio seguente restituirà il valore ASCII di una stringa tra virgolette ( " ).
SELECT ASCII ('"') FROM DUAL; Uscita
ASCII('"')
----------
34
1 row selected. Vedi anche:
- Funzione ABS in Oracle
- Esempio di funzione SUBSTR e INSTR