MySQL获取当前时间

获取当前时间年月日时分秒:

select now() from dual;
select current_timestamp() from dual;

 

获得当前时间年月日:

select CURRENT_DATE() from dual;
select curdate() from dual;

 

获取当前时分秒:

select current_time() from dual;
select curtime() from dual;

posted @ 2021-03-05 11:00  彼岸-花已开  阅读(408)  评论(0编辑  收藏  举报