0

Wordpress has 2 columns in its *wp_posts* table

  • post_date (the actual date post was published)
  • post_modified (the last time the post was modified)

I want to update/change/replace post_modified values with the values of post_date but haven't a clue how to except knowing I need a sql query.

4

2 回答 2

3

Maybe something like this:

UPDATE wp_posts
SET post_modified= post_date
于 2012-05-08T07:31:15.407 回答
1
Update wp_posts
set w1.post_modified = w2.post_date
from wp_posts w1, wp_posts w2 
where w1.IdCol = w2.IdCol
于 2012-05-08T07:31:22.420 回答