Funzione ASCII() di SQL Server
Esempio
Restituisce il valore ASCII del primo carattere in "CustomerName":
SELECT ASCII(CustomerName) AS NumCodeOfFirstChar
FROM Customers;
Definizione e utilizzo
La funzione ASCII() restituisce il valore ASCII per il carattere specifico.
Sintassi
ASCII(character)
Valori dei parametri
Parameter | Description |
---|---|
character | Required. The character to return the ASCII value for. If more than one character is entered, it will only return the value for the first character |
Dettagli tecnici
Funziona in: | SQL Server (a partire dal 2008), Database SQL di Azure, Azure SQL Data Warehouse, Parallel Data Warehouse |
---|