mysql生成随机时间

时间:2017-06-18 22:24:16   收藏:0   阅读:311

技术分享

mysql> update test set create_time=concat(‘2013-10-01 ‘, floor(10+rand()*10),‘:‘,floor(10+rand()*49),‘:‘,floor(10+rand()*49))  where create_time=‘0000-00-00 00:00:00‘;
Query OK, 1 row affected
Rows matched: 1  Changed: 1  Warnings: 0

技术分享


原文:http://www.cnblogs.com/zhchoutai/p/7045559.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!