Can a table have two primary keys?
Answer Posted / pardeeep
NO,A table have only one primary key.But we can use it on more then one column.
Exp..
create table emp(empno int,ename nvarchar(20),deptno int,constraint Pk_constraint primary key( empno,deptno))
This query for SQL server
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we insert data into materialized view?
Determine if oracle date is on a weekend?
what is offset-fetch filter in tsql? : Transact sql
what are all types of user defined functions? : Sql dba
What are reports usually used for?
Do we need to rebuild index after truncate?
What is difference between procedure and trigger?
What are tables and fields?
What are character functions in sql?
What is dml with example?
How do temporal tables work?
What is the source code of a program?
Does sql*plus also have a pl/sql engine?
What is recursive join in sql?
What are different sql data types?