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'
原文:https://www.cnblogs.com/vdvvdd/p/11345762.html