Can a table have two primary keys?
Answer Posted / antonis flangofas
ofc you can, stop giving to ppl wrong answers here it is
CREATE TABLE track(
album CHAR(10),
disk INTEGER,
posn INTEGER,
song VARCHAR(255),
PRIMARY KEY (album, disk, posn)
)
if you want to avoid to have id you use this way.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is ms sql is free?
Do we need commit after truncate?
How can we implement rollback or commit statement in a trigger?
what is the different between now() and current_date()? : Sql dba
What are the different dml commands in sql?
What are the operators in sql?
How many joins can you have in sql?
What is user defined functions?
What is native sql query?
what is 'mysqld'? : Sql dba
What is the maximum number of columns in sql table?
What is the use of desc in sql?
What is composite primary key in sql?
Can we call a function containing dml statements in a select query?
Why use subqueries instead of joins?