|
select DBMS_METADATA.GET_DDL (object type, object name) from dual;
Object type:
CLUSTER
TABLE table
INDEX
REF_CONSTRAINT
CONSTRAINT
VIEW view
TYPE
FUNCTION
PROCEDURE
PACKAGE
SEQUENCE
TRIGGER
SYNONYM
DB_LINK
Such as:
select DBMS_METADATA.GET_DDL('TABLE','MYTABLE') from dual; |
|