Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codio-sql/actors.sql
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
15 lines (13 sloc)
776 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS actors ( | |
id SMALLINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
firstname VARCHAR(25) NOT NULL, | |
lastname VARCHAR(25) NOT NULL, | |
born DATE | |
); | |
INSERT INTO actors(firstname, lastname, born) VALUES("Ralph", "Fiennes", "1962-12-22"); | |
INSERT INTO actors(firstname, lastname, born) VALUES("Léa", "Seydoux", "1985-07-01"); | |
INSERT INTO actors(firstname, lastname, born) VALUES("Ben", "Wishaw", "1980-10-14"); | |
INSERT INTO actors(firstname, lastname, born) VALUES("Vince", "Vaughn", "1970-03-28"); | |
INSERT INTO actors(firstname, lastname, born) VALUES("Mara", "Wilson", "1987-07-24"); | |
INSERT INTO actors(firstname, lastname, born) VALUES("Danny", "DeVito", "1944-11-17"); | |
INSERT INTO actors(firstname, lastname, born) VALUES("Pam", "Ferris", "1948-05-11"); |