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 do I need to start working with sql studio? : sql server management studio
How do we get current date in SQL Server 2000, Oracle, MS Access?
how to determine the service pack currently installed on sql server? : Sql server database administration
Explain what is it unwise to create wide clustered index keys?
What gets stored inside msdb database?
Explain go command in sql server?
how do we insert 100 records at a time in a table without using for loop in database
Write a SQL query to make a column as unique?
Why can there be only one clustered index and not more than one?
What is the difference between 2-Tier architecture and 3-Tier architecture
15 Answers CTS, MCN Solutions, Oracle,
What is acid mean in sql server?
Can you change the data type of a column in a table after the table has been created? If so, which command would you use?
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)