Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Get table ddl without constraints

944524Jan 13 2016 — edited Jan 13 2016

Hi,

Is there a way to get the DDL of table without having constraints(primary,check)?  I tried below

create table T1

as select * from T2 where 1 = 0;

but the above one is coming with constraints, is there a way to get without them as i need to create exact copy of T2 without data and have its column structure including partitions , Only constraints are not required

This post has been answered by Paulzip on Jan 13 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2016
Added on Jan 13 2016
8 comments
2,347 views