如何查出mysql數據庫中數據爲空的表
select TABLE_NAME from information_schema.TABLES where TABLE_SCHEMA =‘schemaName’ and TABLE_ROWS = 0;
如何查看鏈接MySQL數據庫的客戶端IP
select SUBSTRING_INDEX(host,’:’,1) as ip , count(*) from information_schema.processlist group by ip;
如何查出mysql數據庫中數據爲空的表
select TABLE_NAME from information_schema.TABLES where TABLE_SCHEMA =‘schemaName’ and TABLE_ROWS = 0;
如何查看鏈接MySQL數據庫的客戶端IP
select SUBSTRING_INDEX(host,’:’,1) as ip , count(*) from information_schema.processlist group by ip;