select DBMS_METADATA.GET_DDL('TABLE',object_name) from user_objects where object_type = 'TABLE' ;
select DBMS_METADATA.GET_DDL('VIEW',object_name) from user_objects where object_type = 'VIEW' ;
select DBMS_METADATA.GET_DDL('INDEX',object_name) from user_objects where object_type = 'INDEX' ;
select DBMS_METADATA.GET_DDL('SEQUENCE',object_name) from user_objects where object_type = 'SEQUENCE' ;
select DBMS_METADATA.GET_DDL('FUNCTION',object_name) from user_objects where object_type = 'FUNCTION' ;
select DBMS_METADATA.GET_DDL('TYPE',object_name) from user_objects where object_type = 'TYPE' ;
select DBMS_METADATA.GET_DDL('PROCEDURE',object_name) from user_objects where object_type = 'PROCEDURE' ;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25475930/viewspace-2126639/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/25475930/viewspace-2126639/