MySQL Forums
Forum List  »  Newbie

Problem creating table with 2 primary keys
Posted by: Junior P
Date: June 17, 2013 07:19PM

This is the exact statement from a mysql texebook:

CREATE TABLE album (
artist_id (5) NOT NULL,
album_id INT (4) NOT NULL AUTO_INCREMENT,
album_name CHAR(128) DEFAULT NULL,
PRIMARY KEY (artist_id, album_id)
);

Does anyone know why it wont work when I run it?

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.