shadowm

Untitled

Oct 26th, 2013
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.39 KB | None | 0 0
  1. SET @tid = 39475, @ts = UNIX_TIMESTAMP(STR_TO_DATE('Saturday, August 24 2013', '%W, %M %e %Y'));
  2.  
  3. UPDATE phpbb3_topics t
  4.   LEFT JOIN phpbb3_posts p
  5.     ON (t.topic_id = p.topic_id)
  6.   LEFT JOIN phpbb3_forums f
  7.     ON (t.forum_id = f.forum_id)
  8.   SET
  9.     p.post_time = @ts,
  10.     t.topic_time = @ts,
  11.     t.topic_last_post_time = @ts,
  12.     f.forum_last_post_time = @ts
  13.   WHERE t.topic_id = @tid;
Advertisement
Add Comment
Please, Sign In to add comment