SQL语句

1.查询数据库中所有表的数据量,并排序

 

 USE information_schema;

 SELECT table_name,table_rows FROM TABLES  WHERE table_schema = "oms" ORDER BY table_rows DESC;
 
2.快速清除某张表数据
 
  TRUNCATE  t_user (表名)
 
3.source 导入数据

use oms;
source D:\db.sql;
posted @ 2018-01-26 09:55  roundlight  阅读(147)  评论(0编辑  收藏  举报