UPDATE bad_table,good_table
SET bad_table.post_content = good_table.post_content
WHERE bad_table.post_type = 'post' AND
bad_table.post_date = good_table.post_date
This is my code for getting one whole column from one table to another, based on a date value, which I found is unique for this case. However, I get nothing.
If I select this, like so:
SELECT * FROM bad_table,good_table
WHERE bad_table.post_type = 'post' AND
bad_table.post_date = good_table.post_date
...I get all the rows I would expect. What am I doing wrong?