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
Release: 2023-08-24 17:29:02
forward
968 people have browsed it

我们如何检查默认情况下 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)
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template