Home >Database >Mysql Tutorial >What does the MySQL ASCII() function return if no arguments are provided?

What does the MySQL ASCII() function return if no arguments are provided?

PHPz
PHPzforward
2023-09-09 09:29:131364browse

如果没有提供参数,MySQL ASCII() 函数会返回什么?

In this case, it means that we provide an empty string as an argument to the ASCII() function. If an empty string is provided, it returns 0.

Example

mysql> Select ASCII('');

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

1 row in set (0.00 sec)

The above is the detailed content of What does the MySQL ASCII() function return if no arguments are provided?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete