MySQLでランダム時間(TIMESTAMP)に更新するSQL文

  1. update my_table set created=from_unixtime(
  2.        unix_timestamp('2010-07-01 01:00:00')+floor(rand()*31536000)
  3. )
update my_table set created=from_unixtime(
       unix_timestamp('2010-07-01 01:00:00')+floor(rand()*31536000)
)

2010年7月から2011年6月までの時間をランダムに設定♪