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 |
How to count duplicated values in a column in ms sql server?
How exceptions can be handled in sql server programming?
What is the difference between join and inner join?
What is the difference between dropping a database and taking a database offline?
Explain what is use of dbcc commands?
How many types of Outer Joins?What are they?
How to start and end transact-sql statements?
What is raiseerror? What is raiseerror?
any one can explain Self mapping Delegation Remote Credentials
How to use linked server?
I am having table Title with TITLE id,Author ID, Publiser ID , table AUTHOR with Author ID, Author Name, table PUBLISER with Pub ID, Pub name Here hot to find out the publiser id who have relesed the books of patriticular author?
What is the use of “join” in sql server?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)