Created
March 15, 2018 17:50
-
-
Save ig0r74/a7c6d60bf5ba327a12ea1ad8db2a80dc to your computer and use it in GitHub Desktop.
SQl выборка с Left Join и сохранение в новую таблицу для последующего экспорта в .csv
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 new_tbl AS | |
| SELECT | |
| 2bp_customer.*, 2bp_address.company, 2bp_address.address_1, 2bp_address.address_2, 2bp_address.city, 2bp_address.postcode, 2bp_address.country_id, 2bp_address.zone_id | |
| FROM | |
| 2bp_customer LEFT JOIN 2bp_address USING(customer_id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment