您好我正在尝试使用wpml复制wordpress中的自定义帖子 所以我有两张桌子:
1:wp_icl_translations 2:wp_posts
wp_icl_translations有行:
translation_id(primary), element_type , element_id, trid, language_code, source_language_code
wp_posts有很多行,我只得到:
ID(primary)
我的查询:
Insert into `wp_icl_translations` (`element_type`,`element_id`,`trid`,`language_code`,`source_language_code` )
Select "post_timeline",`wp_posts`.`ID`,`wp_icl_translations`.`trid`,`wp_icl_translations`.`language_code`,`wp_icl_translations`.`source_language_code`
FROM `wp_icl_translations`
LEFT JOIN `wp_posts`
ON `wp_posts`.`oldid`=`wp_icl_translations`.`element_id`
WHERE `wp_icl_translations`.`element_type` = "post_news"
我收到错误#1062 - 键'trid_lang'重复输入'0-' 谁能帮助我弄清楚我做错了什么?