bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL ASCII() Function

Example

 SELECT ASCII(CustomerName) AS NumCodeOfFirstChar
FROM Customers;

Definition and Usage

The ASCII() function returns the ASCII value for the specific character.

Syntax

ASCII(
character
)

Parameter Values

ParameterDescription
characterRequired. 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

Technical Details

Works in:From MySQL 4.0

Previous

MySQL Functions

Next

MySQL CHAR_LENGTH() Function