sql函數_NOW(),SYSDATE(),CURDATE(),CURTIME()

mysql>SELECT NOW(),SYSDATE(),CURDATE(),CURTIME();

+---------------------+---------------------+------------+-----------+
| now()               | sysdate()           | curdate()  | curtime() |
+---------------------+---------------------+------------+-----------+
| 2019-06-12 15:54:43 | 2019-06-12 15:54:43 | 2019-06-12 | 15:54:43  |
+---------------------+---------------------+------------+-----------+

now():語句開始執行時間;mysql

sysdate():實時的系統時間sql

相關文章
相關標籤/搜索