Created
July 19, 2013 21:37
-
-
Save bellingboe/6042551 to your computer and use it in GitHub Desktop.
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
INSERT INTO rental_properties | |
( | |
property_name, | |
rental_unit_type, | |
house_number, | |
street_name, | |
street_type, | |
city, | |
zip, | |
neighborhood, | |
owner_company_manager, | |
applicant_name, | |
applicant_addr, | |
applicant_city, | |
applicatn_state, | |
applicant_zip, | |
property_manager, | |
beds, | |
bath | |
) | |
VALUES | |
SELECT | |
NULL as property_name, | |
0 as rental_unit_type, | |
`COL 1` as house_number, | |
`COL 2` as street_name, | |
`COL 3` as street_type, | |
`COL 4` as city, | |
`COL 5` as zip, | |
`COL 6` as neighborhood, | |
'' as owner_company_manager, | |
`COL 9` as applicant_name, | |
`COL 10` as applicant_addr, | |
`COL 11` as applicant_city, | |
`COL 12` as applicant_state, | |
`COL 13` as applicant_zip, | |
'' as property_manager, | |
0 as beds, | |
0 as bath | |
FROM `TABLE 13` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment