Last active
February 15, 2016 13:09
-
-
Save asvechkar/a75b67932a0a5bd18234 to your computer and use it in GitHub Desktop.
Export from EGRUL
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
| select posts.post_name | |
| , posts.post_date | |
| , (select pm.meta_value from lrt7sk_postmeta as pm where pm.post_id = posts.ID and pm.meta_key = 'wpcf-client_email' limit 1) as email | |
| , (select pm.meta_value from lrt7sk_postmeta as pm where pm.post_id = posts.ID and pm.meta_key = 'wpcf-client_phone' limit 1) as phone | |
| from lrt7sk_posts as posts | |
| where posts.post_type = 'orders' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment