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
Environmental requirements: IP hostname 192.168.1...
Basic network configuration Although Docker can &...
Download link: Operating Environment CentOS 7.6 i...
This article example shares the specific code of ...
Table of contents 1. Customize the network to rea...
Preface Vue Router is the official routing manage...
Linux server hosts file configuration The hosts f...
The image of the microservice will be uploaded to...
Table of contents 1. Implementation process of qu...
Principle: First hide the input element, then use...
Data URI Data URI is a scheme defined by RFC 2397...
Table of contents Preface 1. Startup management b...
Regular expressions are often used to search and ...
1 Introduction to HTML 1.1 First experience with ...
Today, it suddenly occurred to me that it would be...