steps to create primary key
Answers
Answered by
1
A primary key can be created at column level and table level :
1. Column Level :
Create table emp(name varchar2(10) constraint cons primary key);
2. Table Level :
Create table emp(name varchar2(10),eno number,constraint cons primary key(name);
Hope this helps!
1. Column Level :
Create table emp(name varchar2(10) constraint cons primary key);
2. Table Level :
Create table emp(name varchar2(10),eno number,constraint cons primary key(name);
Hope this helps!
Similar questions