Preface The SQL mode affects the SQL syntax that MySQL supports and the data validation checks that it performs. The MySQL server can operate in different SQL modes, and can apply these modes differently for different clients, depending on the value of the sql_mode system variable. The DBA can set the global SQL mode to match site server operating requirements, and each application can set its session SQL mode to its own requirements. The mode affects the SQL syntax that MySQL supports and the data validation checks it performs. This makes it easier to use MySQL in different environments and to use MySQL with other database servers. Let’s take a look at the detailed introduction. Setting the SQL Mode To change the SQL mode at runtime, set the global or session sql_mode system variable using the SET statement. SET GLOBAL sql_mode = 'modes'; SET SESSION sql_mode = 'modes'; Mode List
For more details, please refer to https://dev.mysql.com/doc/ref... Strict SQL Mode
Strict SQL mode applies to the following statements
Within a stored procedure, if the procedure was defined while strict mode was in effect, single statements of the listed types are executed in strict SQL mode. Strict SQL mode applies to the following errors, which represent a class of errors where an input value is invalid or missing. A value is invalid if it has the wrong data type for the column or might be out of range. If a new row to be inserted does not contain a value for a column that has no explicit DEFAULT clause in its definition that is NOT NULL , then the value is missing.
Acknowledgements Thank you for reading this. I hope this article can help you. Thank you. 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:
|
<<: How to effectively compress images using JS
>>: Implementation of Docker to build Zookeeper&Kafka cluster
Recently the company has arranged to do some CCFA...
This article example shares the specific code of ...
In previous blog posts, I have been focusing on so...
Effect: When the slideshow moves in one direction...
1. Problem introduction Assume a scenario where a...
This article shares the specific code for JavaScr...
Because a certain function of my project requires...
MySQL DDL statements What is DDL, DML. DDL is dat...
This tutorial shares the installation and configu...
This article mainly introduces how to call desktop...
1. Check the firewall status Check the firewall s...
1. Download 1. MySQL official website download ad...
First, let's talk about why we need to divide...
Table of contents 1. Overview 2. Application Exam...
The above article has temporarily concluded my int...