mysql相关

1)查看当前所处的数据库:

select database();

2)查看表的一些状态信息,比如最后一次更新日期

show table status from your_db like 'your_table';

或者

select *
from   information_schema.tables
where  table_schema = 'your_db'
   and table_name = 'your_table'
posted @ 2019-08-13 14:35  哪来的查克拉  阅读(128)  评论(0编辑  收藏  举报