mysql小知识

-- 查询某数据库中所有表及其记录数
SELECT table_name,table_rows FROM information_schema.tables
WHERE TABLE_SCHEMA = 'awreporting'
ORDER BY table_rows DESC;

-- 查询某数据库中有某字段的表
SELECT table_name FROM information_schema.columns
WHERE table_schema = 'awreporting' AND column_name LIKE '%AUTH_TOKEN%';

posted @ 2018-05-30 19:33  无月行  阅读(120)  评论(0编辑  收藏  举报