행위

"ORACLE 트리거 추출쿼리"의 두 판 사이의 차이

DB CAFE

13번째 줄: 13번째 줄:
 
from dba_source where type='TRIGGER' and owner='$ownerName';
 
from dba_source where type='TRIGGER' and owner='$ownerName';
 
</source>
 
</source>
 +
 +
[[Category:oracle]]

2019년 12월 19일 (목) 12:18 판

thumb_up 추천메뉴 바로가기


/** 
 * 트리거 추출  
 **/ 
select  OWNER 
    ,  NAME 
    ,  TYPE 
    ,  LINE 
    ,  decode(line,1,'CREATE OR REPLACE ' 
        ||replace(text,'PACKAGE BODY ','PACKAGE BODY ' 
        ||owner 
        ||'.'),text) AS PKG_SOURCE 
from dba_source where type='TRIGGER' and owner='$ownerName';