Chinaunix首页 | 论坛 | 博客
  • 博客访问: 998313
  • 博文数量: 116
  • 博客积分: 3758
  • 博客等级: 中校
  • 技术积分: 1316
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-17 11:49
个人简介

这家伙很懒。。。

文章分类

全部博文(116)

文章存档

2016年(3)

2015年(2)

2014年(1)

2013年(9)

2012年(25)

2011年(50)

2010年(12)

2009年(14)

分类: Mysql/postgreSQL

2013-11-19 15:51:52


点击(此处)折叠或打开

  1. use information_schema;

  2. select table_name,table_rows from tables
  3. where TABLE_SCHEMA = 'testdb'
  4. order by table_rows desc;

阅读(38991) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

lijunwyf212016-06-29 20:27:00

use information_schema;SET group_concat_max_len = 100000;
SELECT concat(\'select tn,ct from (\',substring(a.ss,1, locate(\', count(*)\',a.ss)-1),\' as tn, count(*) as ct\',substring(a.ss, locate(\', count(*)\',a.ss)+10,LENGTH(a.ss)-locate(\', count(*)\',a.ss)-19) ,\') t ORDER BY t.ct desc;\' ) INTO @str from 
(select GROUP_CONCAT(t.qs SEPARATOR \' \\n\') ss from(select concat(\'select&nb

lijunwyf212016-06-29 16:29:43

结果不准确