MySQL ASCII Function Returns Without Parameter



In this case, it means we are providing an empty string as an argument to the ASCII() function. It will return 0 on providing empty string.

Example

mysql> Select ASCII('');

+-----------+
| ASCII('') |
+-----------+
|     0     |
+-----------+

1 row in set (0.00 sec)
Updated on: 2020-06-20T07:38:56+05:30

157 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements