数据库毫秒数显示为字符串

mysql> select FROM_UNIXTIME(regdate/1000,'%Y %D %M %h:%i:%s %x')as date from passport_user_info where userid = 10699366 \G                                             
*************************** 1. row ***************************
date: 2010 28th December 01:52:58 2010
1 row in set (0.00 sec)

你可能感兴趣的:(mysql)