Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE stars_in_movies(
- star_id int NOT NULL,
- movie_id int NOT NULL,
- KEY 'star_id' ('star_id'),
- KEY 'movie_id' ('movie_id'),
- CONSTRAINT 'stars_in_movies_ibfk_1' FOREIGN KEY('star_id') REFERENCES 'stars'('id'),
- CONSTRAINT 'stars_in_movies_ibfk_2' FOREIGN KEY('movie_id') REFERENCES 'movies'('id'),
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- INSERT INTO stars_in_movies (907010, 834410);
- ERROR 1064 (4200): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to user near '907010, 834410)' at line 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement