Answer the question
In order to leave comments, you need to log in
Merge two tables by id (MySql)?
Hello, there are two tables (tb1, tb2) with a joining column "id". It is necessary to transfer the "content" column from one table "tb1" to the table "tb2" according to the matching id column.
Answer the question
In order to leave comments, you need to log in
You really have a syntax error.
UPDATE wp_posts
JOIN modx_site_content ON modx_site_content.id = wp_posts.id
SET wp_posts.content = modx_site_content.content
The request passes, but no changes are observed. Found another option
UPDATE wp_posts
SET wp_posts.content = modx_site_content.content
FROM modx_site_content JOIN wp_posts ON modx_site_content.id = wp_posts.id
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question