Sql server ASCII function

 In this article I am going to explain sql server ASCII function.


Description:
ASCII stands for American Standard Code for Information Interchange.  It returns the numeric value of left most character.

Syntax
ASCII ( character_expression )    

Example: 

select ASCII('A') as 'ASCII Value'

select ASCII('Articlemirror.in') as 'ASCII Value'

select ASCII('a') as 'ASCII Value'

Output:
Sql server ASCII function


v    Note: If more than one character is entered, the ASCII function will return the value for the first character and ignore all after first.


Post a Comment

0 Comments