https://dev.mysql.com/sql-mode.html
Changing the server SQL mode after creating and inserting data into partitioned tables can cause major changes in the behavior of such tables, and could lead to loss or corruption of data. STRICT_TRANS_TABLES If a value could not be inserted as ...
https://dev.mysql.com/storage-engine-setting.html
CREATE TABLE t1 (i INT) ENGINE = INNODB; -- Simple table definitions can be switched from one to another. CREATE TABLE t2 (i INT) ENGINE = CSV; CREATE TABLE t3 (i INT) ENGINE = MEMORY; When you omit the ENGINE option, the default storage engine is ... When you create a new table, you can specify which storage engine to use by adding an ENGINE table option to the CREATE TABLE statement: -- ENGINE=INNODB not needed unless you have set a different -- default storage ...
https://dev.mysql.com/stored-program-restrictions.html
Prepared statement scope is the current session, not the stored program, so the statement could be executed after the program ends, at which point the variables would no longer be in scope. This includes SELECT statements that do not have an INTO ...
https://dev.mysql.com/sys-table-exists.html
This is an OUT parameter, so it must be a variable into which the table type can be stored. Tests whether a given table exists as a regular table, a TEMPORARY table, or a view. If both a temporary and a permanent table exist with the given name, ...
https://dev.mysql.com/type-conversion.html
For example, if a subquery returns an integer to be compared to a DATETIME value, the comparison is done as two integers. The arguments are compared as decimal values if the other argument is a decimal or integer value, or as floating-point values ... When an operator is used with operands of different types, type conversion occurs to make the operands ...
https://dev.mysql.com/version-tokens-installation.html
To avoid this overhead, do not install it unless you plan to use it. This section describes how to install or uninstall Version Tokens, which is implemented in a plugin library file containing a plugin and user-defined functions (UDFs). For general ...
https://dev.mysql.com/writing-password-validation-plugins.html
The validate_password_descriptor value in the general descriptor points to the type-specific descriptor. The server checks interface_version when it loads the plugin to see whether the plugin is compatible with it. For password-validation plugins, ... This section describes how to write a server-side password-validation ...
https://dev.mysql.com/calculating-days.html
CREATE TABLE t1 (year YEAR, month INT UNSIGNED, day INT UNSIGNED); INSERT INTO t1 VALUES(2000,1,1),(2000,1,20),(2000,1,30),(2000,2,2), (2000,2,23),(2000,2,23); The example table contains year-month-day values representing visits by users to the page. The following example shows how you can use the bit group functions to calculate the number of days per month a user has visited a Web ...
https://dev.mysql.com/condition-pushdown-optimization.html
In all of the cases in the preceding list, it is possible for the condition to be converted into the form of one or more direct comparisons between a column and a constant. This optimization improves the efficiency of direct comparisons between a ...
https://dev.mysql.com/converting-tables-to-innodb.html
Thus, take care to avoid transactions that run for too long: If you are using a mysql session for interactive experiments, always COMMIT (to finalize the changes) or ROLLBACK (to undo the changes) when finished. Close down interactive sessions ...