MariaDB [jumpserver]> select current_time;
+--------------+
| current_time |
+--------------+
| 16:22:18 |
+--------------+
1 row in set (0.00 sec)
MariaDB [jumpserver]> select current_date;
+--------------+
| current_date |
+--------------+
| 2018-12-28 |
+--------------+
1 row in set (0.00 sec)
转载于:https://www.cnblogs.com/kaishirenshi/p/10191307.html