Rechercher dans le manuel MySQL
A.3 MySQL 8.0 FAQ: Server SQL Mode
- A.3.1. What are server SQL modes?
- A.3.2. How many server SQL modes are there?
- A.3.3. How do you determine the server SQL mode?
- A.3.4. Is the mode dependent on the database or connection?
- A.3.5. Can the rules for strict mode be extended?
- A.3.6. Does strict mode impact performance?
- A.3.7. What is the default server SQL mode when MySQL 8.0 is installed?
A.3.1. | What are server SQL modes? |
Server SQL modes define what SQL syntax MySQL should support and what kind of data validation checks it should perform. This makes it easier to use MySQL in different environments and to use MySQL together with other database servers. The MySQL Server apply these modes individually to different clients. For more information, see Section 5.1.11, “Server SQL Modes”. | |
A.3.2. | How many server SQL modes are there? |
Each mode can be independently switched on and off. See Section 5.1.11, “Server SQL Modes”, for a complete list of available modes. | |
A.3.3. | How do you determine the server SQL mode? |
You can set the default SQL mode (for mysqld
startup) with the | |
A.3.4. | Is the mode dependent on the database or connection? |
A mode is not linked to a particular database. Modes can be set
locally to the session (connection), or globally for the server.
you can change these settings using
| |
A.3.5. | Can the rules for strict mode be extended? |
When we refer to strict mode, we mean a
mode where at least one of the modes
| |
A.3.6. | Does strict mode impact performance? |
The intensive validation of input data that some settings requires more time than if the validation is not done. While the performance impact is not that great, if you do not require such validation (perhaps your application already handles all of this), then MySQL gives you the option of leaving strict mode disabled. However, if you do require it, strict mode can provide such validation. | |
A.3.7. | What is the default server SQL mode when MySQL 8.0 is installed? |
The default SQL mode in MySQL 8.0 includes these modes:
For information about all available modes and default MySQL behavior, see Section 5.1.11, “Server SQL Modes”. |
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-faqs-sql-modes.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.