mysql
在数据库db_name中有很多表,我想查询记录条数最少的那一张表的表名,有什么好办法啊?谢谢
在数据库db_name中有很多表,我想查询记录条数最少的那一张表的表名,有什么好办法啊?谢谢
解决方案 »
- 新手问题:mysqld.exe占用400多M内存,该怎么办?
- sql management studio for mysql 2010注册码?
- mysql防注入讨论
- 这段存储过程哪里有问题呀?
- 急,数据库查询问题
- apache 链接MySQL出现如下错误??
- 如何用php得到mysql中数据库的名称和得到所有字段名称呢?一困难的问题
- 在mysql中用tinyint 类型做主关健字的类型长度为4,并且默认值为autoincreatment
- 难题征求最佳解决方案
- 求个mysql查询语句,单表排重,先谢谢了!
- mysql 实现递归删除
- SQL 异常: Server configuration denies access to data source
select TABLE_NAME,TABLE_ROWS from TABLES where TABLE_SCHEMA='db_name' and TABLE_ROWS is not null order by TABLE_ROWS limit 1
select table_name from tables where table_schema = 'db_name' and
table_rows in (select min(table_rows) from tables where table_schema='db_name')
;
服务器上的mysql没有information_schema数据库~
估计在这个问题上我只能止于此了,谢谢大家。