select userenv('language') from dual; --修改Oracle数据库字符集为ZHS16GBK : SQL>conn / as sysdba; SQL>shutdown immediate; SQL>startup mount; SQL>alter system enable restricted session; SQL>alter system set job_queue_processes=0; SQL>alter system s
oracle对于子查询的支持做的很好,oracle optimizer会对inline view进行query transfomation,即视图合并,不过也经常带来意想不到的问题.下面是一个inline view的merge的例子: 1, 创建临时表 create table test1 as select * from dba_objects; create table test2 as select * from dba_objects; 2, 以下查询语句 select * from t
--修改Oracle数据库字符集为utf-8: SQL>conn / as sysdba; SQL>shutdown immediate; SQL>startup mount; SQL>alter system enable restricted session; SQL>alter system set job_queue_processes=0; SQL>alter system set aq_tm_processes=0; SQL>alter databas
1>函数转换 select nvl2(translate(a.data, '\1234567890.', '\'), null, a.data) n, a.data from rpt_detail a; 2>自定义函数 create or replace function isNumber(p_in varchar2) return boolean as i number; begin i:=to_number(p_in); return true; exception when others