Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SQL query:
- CREATE TABLE Customers (
- CustomerId INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
- Name VARCHAR(255) NOT NULL,
- Album VARCHAR(255) NOT NULL,
- Copies INTEGER,
- PRIMARY KEY (CustomerId),
- CONSTRAINT FKC1
- FOREIGN KEY FKalbum (Album)
- REFERENCES Discs (DiscID)
- ON DELETE CASCADE
- ON UPDATE CASCADE
- )
- MySQL said: Documentation
- #1005 - Can't create table `store`.`customers` (errno: 150 "Foreign key constraint is incorrectly formed") (Details…)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement