Preface There are 4 types of operators in MySQL, they are:
This should be familiar to everyone, but this article summarizes the relevant content about special operators in MySQL. Let's take a look at the detailed introduction. 1. <=> safe comparison operator In MySQL, any comparison with NULL will be NULL, which is often used to determine whether it is NULL. Of course I can also use IS NULL 2. The role of := assignment Both the := and = operators have the function of assigning values. In most scenarios, there is no difference between them, but := is more applicable to all scenarios. = has the same function as := only when used for set and update, i.e. assignment. Otherwise, it functions as the relational operator equal to. := is not only used for setting and updating, but also for selecting. It is often used in combination with @, such as numbering. 3. @ User variables @ is a local variable declaration. If there is no @, the field represents the column name and is used for user variable declaration. 4. @@ System variables System variables are divided into global system variables and session system variables Some system variables are only available at the global level, such as max_connnections. You do not need to explicitly declare global when reading, but you need to declare when setting. Otherwise, you will be prompted to set a global variable. These are the most commonly used ones, and I will add more later. . . Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support for 123WORDPRESS.COM. You may also be interested in:
|
>>: Detailed steps to install python3.7 on CentOS6.5
1. Wireless Run PowerShell and enter the command:...
1. Avoid declaring the page as XML type . The pag...
Table of contents 1. Listening for events 2. Pass...
The property names often heard in web design: con...
Table of contents Problems Redux Toolkit solves W...
The <label> tag defines a label (tag) for an...
Table of contents Exporting Docker containers Imp...
Preface In the previous interview process, when a...
MySQL 8.0.20 installation and configuration super...
0. New operation: mkdir abc #Create a new folder ...
Preface I feel like my mind is empty lately, as I...
Table of contents 1 Install Docker 2 Configuring ...
Application example website http://www.uhuigou.net...
Cancel the icon 1 in front of ul li Clear Value 1 ...
Table of contents 1. MySQL replication process 2....