Toad World® Forums

SQL Generation - primary key


#1

When generating a create table script is there a way to have it include the creation of the primary key?


#2

Hello,

In order to include PK in script generation you should open RHS Script tab of
the table and check ‘Primary keys’ checkbox. Now PK will be
displayed in script when you use ‘Generate SQL’

Thanks,

Anastasia