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!

CREATE TABLE

PS SPAug 6 2021

Is there any syntax when i create table from another table

I would like to add some primary key while creating table from selecting from another database synonym.
Ex:
CREATE TABLE new_table UC_NUMB
AS (SELECT UC_NUMB FROM Testanotherdb.Testsynonym);
I want to make UC_NUMB as primary or unique key in one statement, not with 2 statements like create and alter.

Thanks

This post has been answered by mathguy on Aug 6 2021
Jump to Answer
Comments
Post Details
Added on Aug 6 2021
1 comment
829 views