摘要:
--测试自定义异常create or replace package body exception_test_pkg is exp_difin_error exception; g_msg_data varchar2(2000); procedure test(p1 in number, p2 in number) is begin if p1 > p2 then g_msg_data := 'p1大于p2'; raise exp_difin_error; end if; end; procedure main(p1 in number, p... 阅读全文
摘要:
--天select to_char(a.effective_date, 'DD'), sum(a.entered_cr) from gl_je_lines a group by to_char(a.effective_date, 'DD');--月select to_char(a.effective_date, 'MM'), sum(a.entered_cr) from gl_je_lines a group by to_char(a.effective_date, 'MM');--年 select to_char(a.effec 阅读全文