常用核心数据库查询sql

时间:2020-07-22 11:25:20   收藏:0   阅读:85

一、查询账户信息

-- 查询数据量
/*{"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;

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!