Last active
December 23, 2015 21:49
-
-
Save andersr/6699110 to your computer and use it in GitHub Desktop.
FS 003 - SQL Schema and Tables
This file contains hidden or 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 artists( | |
name TEXT, | |
age INTEGER, | |
instruments TEXT, | |
songs TEXT, | |
genres TEXT | |
); |
This file contains hidden or 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
ALTER TABLE artists ADD COLUMN albums TEXT; |
This file contains hidden or 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
ALTER TABLE artists RENAME TO musicians; |
This file contains hidden or 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
DROP TABLE musicians; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment