행위

"ORACLE 프로시져 추출쿼리"의 두 판 사이의 차이

DB CAFE

 
(같은 사용자의 중간 판 하나는 보이지 않습니다)
1번째 줄: 1번째 줄:
 
+
== 프로시져 추출쿼리 ==
* 프로시져 추출  
+
* 프로시져 추출  
  
 
<source lang=sql>
 
<source lang=sql>
13번째 줄: 13번째 줄:
 
from dba_source where type='PROCEDURE' and owner='$ownerName';
 
from dba_source where type='PROCEDURE' and owner='$ownerName';
 
</source>
 
</source>
 +
[[Category:oracle]]

2024년 1월 11일 (목) 00:49 기준 최신판

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