Created
July 24, 2013 16:41
-
-
Save doofusdavid/6072250 to your computer and use it in GitHub Desktop.
Syntax for creating multi-table insert statements to import information into wordpress. This is an excel function.
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
| =CONCATENATE("INSERT INTO wp_3_terms (name, slug) values ('",C2,"', '",E2,"');"," | |
| SET @LASTID = LAST_INSERT_ID();"," | |
| INSERT INTO wp_3_term_taxonomy (term_id, taxonomy,parent,count) VALUES(@LASTID, 'media_source', 0,0);", | |
| "INSERT INTO wp_3_pods_media_source (@LASTID, ",A2,");") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment