Wordpress MySQL:将字段从表(commentmeta和comments)复制到新表
背景:Wordpress MySQL:将字段从表(commentmeta和comments)复制到新表,mysql,wordpress,Mysql,Wordpress,背景: USE wp_database; INSERT into wp_combined (country, city, continent, comment_post_id, user_id) /* note above are the only fields required to copy) */ SELECT country, city, continent, comment_post_id, user_id FROM wp_co
USE wp_database;
INSERT into wp_combined (country, city, continent, comment_post_id, user_id)
/* note above are the only fields required to copy) */
SELECT country, city, continent, comment_post_id, user_id FROM wp_commentmeta, wp_comments
- 表wp_commentmeta包含以下列:国家、城市、大陆和注释id
- 表wp_comments包含以下列:comment_ID、comment_post_ID和user_ID
- 我自定义创建了一个名为wp_的表,其中包含以下列:国家、城市、大陆和用户id
USE wp_database;
INSERT into wp_combined (country, city, continent, comment_post_id, user_id)
/* note above are the only fields required to copy) */
SELECT country, city, continent, comment_post_id, user_id FROM wp_commentmeta, wp_comments
我该怎么做?谢谢你们,朋友们