oracle PL/SQL管理命令语句(四)

2014-11-24 12:55:25 · 作者: · 浏览: 4

查询数据库中第63号错误:

select orgaddr,destaddr from sm_histable0116 where error_code='63';

查询数据库中开户用户最大提交和最大下发数:select MSISDN,TCOS,OCOS from ms_usertable;

查询数据库中各种错误代码的总和:

select error_code,count(*) from sm_histable0513 group by error_code order

by error_code;

查询报表数据库中话单统计种类查询。

select sum(Successcount) from tbl_MiddleMt0411 where ServiceType2=111

select sum(successcount),servicetype from tbl_middlemt0411 group by servicetype

作者:wlbbswl