ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

CREATE TABLE LIKE replicating Primary keys

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CREATE TABLE LIKE replicating Primary keys

    Hi!

    As you know, you can duplicate the definition of a table using CREATE TABLE LIKE or CREATE TABLE AS.
    But, I can't find the way to replicate the Primary Key as well.

    Is there any way to do that in SQL?

    Thanks
Working...
X