1. 程式人生 > >mysql 計算時間毫秒

mysql 計算時間毫秒

mysql> select unix_timestamp();
+------------------+
| unix_timestamp() |
+------------------+
|       1416453377 |
+------------------+
1 row in set


mysql> select unix_timestamp() * 1000 + 10 * 365*24*60*60*1000
;
+--------------------------------------------------+
| unix_timestamp() * 1000 + 10 * 365*24*60*60*1000 |
+--------------------------------------------------+
|                                    1731813424000 |
+--------------------------------------------------+
1 row in set
mysql>