is it possible to assign two primary key in a table
Answers were Sorted based on User's Feedback
Answer / sushma s
A table can have only one primary key assigned.
| Is This Answer Correct ? | 19 Yes | 0 No |
Answer / sudipta santra
IF WE MAKE COMPOSITE PRIMIRAY KEY THEN ONLY MORE THAN ONE
COLUMNS WILL BE BIND UP.
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / jd
At the end of the day a primary key is unique non null value
that the data is indexed upon.
Even if only one column can be explicitly defined as the PK.
It is possible to uniquely identify a row differently, by
creating a unique non null column that is indexed. It is
implicitly then a PK.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer is strictly NO...!!!
we may have morethan one unique column in a table but we should assign only one primary key...!!
| Is This Answer Correct ? | 3 Yes | 0 No |
Is primary key auto increment?
Are stored procedures precompiled?
Query to select passwords from a table having a column "Password" Whose length is b/w 8 &15 and having 'A' as the first character in the password irrespective of case.
Why mysql is open source?
What are the similarities between a function and a procedure?
How to Creating a new user. Login as root. Switch to the MySQL db. Make the user. Update privs.
What are the mysql database files stored in system ?
What is the usage of ENUMs in MySQL?
How to create and drop view in mysql?
How to represent ENUMs and SETs internally?
What is limit in mysql?
What is mysql_connect?
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)