我正在嘗試使用MySql Quariy更改帖子並不斷收到1093 Err 我嘗試了所有有關使用子查詢的提示沒有成功err#1093 - 您無法指定目標表'wp_posts'在FROM子句中進行更新
也許有人可以幫我
UPDATE wp_posts SET post_content = CONCAT(post_content , 'testext_bla_bla')
WHERE wp_posts.id in (select wp_posts.ID
from wp_posts
LEFT JOIN wp_term_relationships on wp_posts.ID = wp_term_relationships.object_id
LEFT JOIN wp_term_taxonomy ON wp_term_taxonomy.term_taxonomy_id = wp_term_relationships.term_taxonomy_id
LEFT JOIN wp_terms ON wp_terms.term_id = wp_term_relationships.term_taxonomy_id
WHERE wp_posts.post_excerpt like '%LO1185LH%' and wp_term_taxonomy.term_taxonomy_id = 27)
,並不斷收到「#1093 - 你不能指定更新目標表‘wp_posts’FROM子句」
感謝 阿薩夫