행위

"ORACLE 함수 추출쿼리"의 두 판 사이의 차이

DB CAFE

(새 문서: * * 펑션 추출 *: select OWNER , NAME , TYPE , LINE , decode(line,1,'CREATE OR REPLACE ' ||replace(text,'PACKAGE BODY ','PACKAGE BODY '...)
 
1번째 줄: 1번째 줄:
/**
+
 
  * 펑션 추출   
+
  * 함수 추출   
**/
+
 
 +
<source lang=sql>
 
select  OWNER  
 
select  OWNER  
 
     ,  NAME  
 
     ,  NAME  
11번째 줄: 12번째 줄:
 
         ||'.'),text) AS PKG_SOURCE  
 
         ||'.'),text) AS PKG_SOURCE  
 
from dba_source where type='FUNCTION' and owner='$ownerName';
 
from dba_source where type='FUNCTION' and owner='$ownerName';
 +
</source>

2018년 8월 29일 (수) 17:44 판

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='FUNCTION' and owner='$ownerName';