I have this situation:
http://stackoverflow.com/questions/1590033/mysql-newbie-question-which-are-the-pk-and-the-fk-for-this-tables (take a look at the table Salaries)
How do you create a table with multiple primary keys?
create table salaries
(
dep_id smallint auto_increment primary key,
emp_id smallint auto_increment primary key,
bla varchar(20)
);
I receive an error if I try the code above. Any ideas?