Home >Database >Mysql Tutorial >How can we check if the MySQL CHAR() function returns a binary string by default?

How can we check if the MySQL CHAR() function returns a binary string by default?

PHPz
PHPzforward
2023-08-24 17:29:02956browse

我们如何检查默认情况下 MySQL CHAR() 函数是否返回二进制字符串?

With the help of the CHARSET() function, we can check which string is returned by the MySQL CHAR() function. The following result set will demonstrate it -

mysql> Select CHARSET(CHAR(85));
+-------------------+
| CHARSET(CHAR(85)) |
+-------------------+
| binary            |
+-------------------+
1 row in set (0.00 sec)

The above is the detailed content of How can we check if the MySQL CHAR() function returns a binary string by default?. 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