码迷,mamicode.com
首页 > 数据库 > 详细

常用核心数据库查询sql

时间:2020-07-22 11:25:20      阅读:85      评论:0      收藏:0      [点我收藏+]

标签:pre   style   comment   tab   base   tran   bsp   The   desc   

一、查询账户信息

-- 查询数据量
/*{"xdb_comment":"1","table":"mb_tran_hist","pk_value":"0"}*/
select base_acct_no,count(1) num from mb_tran_hist group by base_acct_no ORDER BY num desc;

/*{"xdb_comment":"1","table":"mb_tran_hist","pk_value":"1"}*/
select base_acct_no,count(1) num from mb_tran_hist group by base_acct_no ORDER BY num desc;

/*{"xdb_comment":"1","table":"mb_tran_hist","pk_value":"2"}*/
select base_acct_no,count(1) num from mb_tran_hist group by base_acct_no ORDER BY num desc;

/*{"xdb_comment":"1","table":"mb_tran_hist","pk_value":"3"}*/
select base_acct_no,count(1) num from mb_tran_hist group by base_acct_no ORDER_BY num desc;

 

常用核心数据库查询sql

标签:pre   style   comment   tab   base   tran   bsp   The   desc   

原文地址:https://www.cnblogs.com/huazheng/p/13359003.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!