广州葆元健康生物科技有限公司


MySQL Variables show_old_temporals 数据库 参数变量解释及正确配置使用

网络编程 MySQL Variables show_old_temporals 数据库 参数变量解释及正确配置使用 10-15

本站中文解释

MySQL参数变量show_old_temporals可以用来控制是否显示以前版本MySQL数据库定义的临时表。当这个参数设置为“ON”时,以前版本MySQL数据库自动创建的临时表都会显示出来,而当设置为“OFF”时,只有以当前版本MySQL数据库自动创建的临时表才会显示此参数默认值为OFF。

要设置该参数,可以在任意客户端上执行如下SQL语句:SET GLOBAL show_old_temporals=1;

官方英文解释

show_old_temporals

Command-Line Format--show-old-temporals[={OFF|ON}]
DeprecatedYes
System Variableshow_old_temporals
ScopeGlobal, Session
DynamicYes
TypeBoolean
Default ValueOFF

Whether SHOW CREATE TABLE
output includes comments to flag temporal columns found to be
in pre-5.6.4 format (TIME,
DATETIME, and
TIMESTAMP columns without
support for fractional seconds precision). This variable is
disabled by default. If enabled, SHOW
CREATE TABLE
output looks like this:

CREATE TABLE `mytbl` (  `ts` timestamp /* 5.5 binary format */ NOT NULL DEFAULT CURRENT_TIMESTAMP,  `dt` datetime /* 5.5 binary format */ DEFAULT NULL,  `t` time /* 5.5 binary format */ DEFAULT NULL) DEFAULT CHARSET=latin1

Output for the COLUMN_TYPE column of the
Information Schema COLUMNS table
is affected similarly.

This variable is deprecated; expect it to be removed in a
future release of MySQL.


编辑:广州葆元健康生物科技有限公司

标签:参数,版本,数据库,设置为,都会