Home > Database > Mysql Tutorial > body text

What is the default type of bit values ​​assigned to user variables?

王林
Release: 2023-09-05 13:09:17
forward
873 people have browsed it

What is the default type of bit values ​​assigned to user variables?

#By default, the bit values ​​assigned to user variables are binary strings. This can be illustrated by assigning bit values ​​to user variables and then retrieving them as follows -

mysql> SET @abc = 0b1000011;
Query OK, 0 rows affected (0.00 sec)

mysql> Select @abc;
+------+
| @abc |
+------+
| C    |
+------+
1 row in set (0.00 sec)
Copy after login

The above result set shows that the default type of bit values ​​assigned to user variables is binary string.

The above is the detailed content of What is the default type of bit values ​​assigned to user variables?. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!