I. hijack inquiry
select 'DROP TRIGGER ' || owner || '."' ||TRIGGER_NAME || '";'
from dba_triggers
where TRIGGER_NAME like 'DBMS_%_INTERNAL%'
union all
select 'DROP PROCEDURE '|| owner ||'."'|| a.object_name || '";'
from dba_procedures a
where a.object_name like 'DBMS_%_INTERNAL%';
II. Instead of routine work
III. The simple query optimization
IV. Dynamic SQL
V. cursor
1.
2.
3.
Six .XML generation
七.regexp_substr
Regexp_Substr (String, pattern, position, occurrence, modifier) String: string operation; pattern: regular expression matching rules to return; position: position of the start of the match, the default course is 1; occurrence: identification of several matched set, the default is 1 modifier: mode (i searching case insensitive, case sensitive retrieval C default is c.)
select regexp_substr('320100|林善成|008527021386513201005EEC6E|1.0','[^|]+',1,1) from dual; 320100
-------------------------------------------------------------------------------------------
select regexp_substr('320100|林善成|008527021386513201005EEC6E|1.0','[^|]+',1,2) from dual; 林善成
-------------------------------------------------------------------------------------------
select regexp_substr('320100|林善成|008527021386513201005EEC6E|1.0','[^|]+',1,3) from dual; 008527021386513201005EEC6E
-------------------------------------------------------------------------------------------
select regexp_substr('320100|林善成|008527021386513201005EEC6E|1.0','[^|]+',1,4) from dual; 1.0
-------------------------------------------------------------------------------------------
select regexp_substr('320100|林善成|008527021386513201005EEC6E|1.0','[^|]+',1,5) from dual;
0000381877|00000113|中国石化集团金陵石油化工有限责任公司|320102194006300831|林善成|1|23|0|320101|5.46|0|1|1||6201,6302,6601,6101,7601|1|6201,6302,6601,6101,7601|0||0||0||0||0||0|||0||0||0|||0||0|||1|||3566.54|0|0|||0|2451.72|0|
八.触发器