MySQL Variables show_old_temporals 数据库 参数变量解释及正确配置使用
  iDU31ygkXmx7 2023年11月20日 26 0

本站中文解释

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}]
Deprecated Yes
System Variable show_old_temporals
Scope Global, Session
Dynamic Yes
Type Boolean
Default Value OFF

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.

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月20日 0

暂无评论

iDU31ygkXmx7
最新推荐 更多

2024-05-17