In the primary key have a multiple field or not?
Answers were Sorted based on User's Feedback
Answer / prashanth kumar
Yes , it have multiple fields.Run below query and creating
primary key on p_Id and LastName.
CREATE TABLE Persons
(
P_Id int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
CONSTRAINT pk_PersonID PRIMARY KEY (P_Id,LastName)
)
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / rajkumar
s primary key have the multiple filed use os composite
primary key.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ziyaur rahman
no,in one table there is only one primary key field
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / prasadhari_m@yahoo.com
A TABLE ALLOWS ONLY ONE PRIMARY KEY.
Is This Answer Correct ? | 0 Yes | 1 No |
What is the command dbcc checkdb used for?
What is openxml in sql server?
explain the type of contraints
How do I start and stop sql server?
what is checksum in sql server.........???
as a part of your job, what are the dbcc commands that you commonly use for database maintenance? : Sql server database administration
what are defaults? Is there a column to which a default can't be bound? : Sql server database administration
When do you use SQL Profiler?
What are the advantages of policy management?
What are the five major components of a dbms?
Define candidate key, alternate key, and composite key.
How to make a remote connection in a database?