oracle 常用函数

工作中处理问题集:

1、不足,填充

  select rownum as n , rpad('2', 10,'*')as pad from dual

2、oracle异常处理

  exception
  when others then
  v_ErrorText := SUBSTR(SQLERRM, 1, 200);
  dbms_output.put_line(v_ErrorText);
  cumulative_fail := cumulative_fail + 1;
  end;

3、oracle查看编码

     select userenv('language') from dual; 

原文地址:https://www.cnblogs.com/it38/p/5075435.html