Link to home
Start Free TrialLog in
Avatar of brgdotnet
brgdotnetFlag for United States of America

asked on

How to script out a table definition in Oracle Sql developer

In Oracle Sql developer, how do you script out a table definition, so that when you want to create the table in another database, you don't have to create the table manually?
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

I would probably do it with straight SQL:
select dbms_metadata.get_ddl('TABLE','YOUR_TABLE_NAME') from dual;

https://docs.oracle.com/database/122/ARPLS/DBMS_METADATA.htm#GUID-A4683EEE-6F54-4081-B7BF-1496096675FA

If you want the SQL Developer way:
http://www.oracle.com/technetwork/developer-tools/sql-developer/export-intro-1-161239.html
ASKER CERTIFIED SOLUTION
Avatar of Geert G
Geert G
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial