Created
May 10, 2016 17:40
-
-
Save mariordev/524a926c21cb4c31e942e3dfe6d1a5f0 to your computer and use it in GitHub Desktop.
Insert statements to seed a table with US and Canadian states.
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
INSERT INTO states(state_code,state_name,country_code) VALUES ('AL','Alabama','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('AK','Alaska','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('AZ','Arizona','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('AR','Arkansas','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('CA','California','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('CO','Colorado','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('CT','Connecticut','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('DE','Delaware','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('DC','District of Columbia','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('FL','Florida','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('GA','Georgia','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('HI','Hawaii','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('ID','Idaho','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('IL','Illinois','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('IN','Indiana','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('IA','Iowa','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('KS','Kansas','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('KY','Kentucky','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('LA','Louisiana','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('ME','Maine','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('MD','Maryland','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('MA','Massachusetts','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('MI','Michigan','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('MN','Minnesota','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('MS','Mississippi','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('MO','Missouri','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('MT','Montana','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NE','Nebraska','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NV','Nevada','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NH','New Hampshire','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NJ','New Jersey','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NM','New Mexico','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NY','New York','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NC','North Carolina','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('ND','North Dakota','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('OH','Ohio','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('OK','Oklahoma','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('OR','Oregon','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('PA','Pennsylvania','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('RI','Rhode Island','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('SC','South Carolina','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('SD','South Dakota','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('TN','Tennessee','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('TX','Texas','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('UT','Utah','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('VT','Vermont','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('VA','Virginia','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('WA','Washington','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('WV','West Virginia','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('WI','Wisconsin','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('WY','Wyoming','US'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('AB','Alberta','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('BC','British Columbia','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('MB','Manitoba','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NB','New Brunswick','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NL','Newfoundland and Labrador','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NT','Northwest Territory','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NS','Nova Scotia','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('NU','Nunavut Territory','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('ON','Ontario','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('PE','Prince Edward Island','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('QC','Quebec','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('SK','Saskatchewan','CA'); | |
INSERT INTO states(state_code,state_name,country_code) VALUES ('YT','Yukon','CA'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment