oracle get ddl

Solutions on MaxInterview for oracle get ddl by the best coders in the world

showing results for - "oracle get ddl"
Stefano
06 Jun 2019
1-- 4000 characters max
2SELECT dbms_metadata.get_ddl('PROCOBJ', 'job_name', 'owner') FROM DUAL;
3SELECT dbms_metadata.get_ddl('PROCOBJ', 'program_name', 'owner') FROM DUAL;
4SELECT dbms_metadata.get_ddl('TABLE', 'table_name', 'owner') FROM DUAL;
5SELECT dbms_metadata.get_ddl('VIEW', 'view_name', 'owner') FROM DUAL;
6
7SELECT dbms_metadata.get_ddl('PACKAGE', 'pkg_name', 'owner') FROM DUAL; 
8SELECT dbms_metadata.get_ddl('PROCEDURE', 'proc_name', 'owner') FROM DUAL; 
9
10SELECT dbms_metadata.get_ddl('INDEX', 'index_name', 'owner') FROM DUAL;
11SELECT dbms_metadata.get_ddl('TYPE', 'type_name', 'owner') FROM DUAL;