赞
踩
SELECT * FROM `information_schema`.`TABLES` WHERE `information_schema`.`TABLES`.`TABLE_SCHEMA` = 'XXX' AND `information_schema`.`TABLES`.`TABLE_NAME` = 'XXX'\G
SELECT * FROM information_schema.PROCESSLIST p where (p.INFO is not NULL or p.COMMAND='Query') AND USER='hadoop';
show processlist;
SELECT count(*) TABLES, table_schema FROM information_schema.TABLES
where table_schema = '数据库名称xxx' GROUP BY table_schema;
use information_schema;
select table_name,table_rows from tables where TABLE_SCHEMA = '数据库名称xxx' order by table_rows desc;
where table_schema = '你的数据库名'
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。