背景:
我想将country,city,continent,user_id和comment_post_ID复制到新自定义创建的表wp_combined。这需要将country,city和continent的wp_commentmeta字段与wp_comments中的user_id和comment_post_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
我该怎么做?谢谢你,朋友们。