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
The author recently encountered a performance bot...
This post introduces a set of free Photoshop wire...
1. Table structure 2. Table data 3. The query tea...
This article example shares the specific code of ...
This article introduces how to install Chrome bro...
1. Overlay Overview Overlay means covering, as th...
Preface: As far as I know, currently CSS can only...
Table of contents Preface 1. The request content ...
mysql gets all dates or months in a time period 1...
Preface The need for real-time database backup is...
1. In Windows system, many software installations...
Preface We all know that the import and export of...
Table of contents background Main content 1. Comp...
In HTML, <, >, &, etc. have special mean...
Preface HTTP is a stateless communication protoco...