oracle create a primary key statement

notes

alter table tablename add constraint unionkeyname primary key (column1,column2);


The above statement:

tablename is the table you want to add Constraints

unionkeyname to add the name of Constraints

column1, column2 role as the primary key column names of two columns

Description link

https://www.cnblogs.com/king-xg/p/6721272.html

Guess you like

Origin www.cnblogs.com/sunny3158/p/11314855.html