mysql 計算時間毫秒
阿新 • • 發佈:2019-01-22
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>