当前位置:网站首页>mysql查看表的创建时间
mysql查看表的创建时间
2022-08-09 05:12:00 【愤怒的苹果ext】
背景
- 新建了哪些表没记录,时间久远忘记建了哪些表了,或者其他同事创建了哪些表不知道,发布就尴尬。
- 这个时候可以从
information_schema
库中寻找。
使用
- 使用如下命令
SELECT
*
FROM
`information_schema`.`TABLES`
WHERE
`information_schema`.`TABLES`.`TABLE_SCHEMA` = 'xx_db' -- database
and `information_schema`.`TABLES`.`CREATE_TIME` > '2021-12-20 14:36:01' -- 从这里开始
AND `information_schema`.`TABLES`.`TABLE_NAME` LIKE 'c_%' -- 表名c_开头
order by `information_schema`.`TABLES`.`CREATE_TIME` ; -- 创建时间正序
- 效果
- 包含表名,创建时间,修改时间等一应俱全。
边栏推荐
猜你喜欢
随机推荐
Harmony OS ets ArkUI 】 【 】 the development basic page layout and data connection
【Harmony OS】【ARK UI】Date 基本操作
could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarExcept
学习一下 常说的节流
初识二叉树
2022-08-08 顾宇佳 学习笔记
P8462 「REOI-1」奶油蛋糕
bean的生命周期
【Harmony OS】【FAQ】Hongmeng Questions Collection 1
Harmony OS ets ArkUI 】 【 】 development create a view and building layout
DS3231模块使用
el与data的
【Harmony OS】【ArkUI】ets开发 图形与动画绘制
【luogu U142356】Suffix of the Brave (SA) (Chairman Tree) (2 points)
STM32学习笔记(PWM输出)
Shell 文本三剑客 (grep、sed、awk)
电气规则
区别如下概念:路径、绝对路径、相对路径、当前目录。系统磁盘上存在某个可执行文件,但在DOS环境输入其文件名却提示没有这个文件,是什么原因?
Eureka-Server------单节和集群的搭建
Shell:数组和函数用法