Funkce SQL Server ASCII() .
Příklad
Vraťte hodnotu ASCII prvního znaku v "CustomerName":
SELECT ASCII(CustomerName) AS NumCodeOfFirstChar
FROM Customers;
Definice a použití
Funkce ASCII() vrací hodnotu ASCII pro konkrétní znak.
Syntax
ASCII(character)
Hodnoty parametrů
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 |
Technické údaje
Pracuje v: | SQL Server (od roku 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse |
---|