Mysql common date functions

1, conventional date function

1.1、now()

Get the current system time

SELECT now() from emp;​​​​​​​

 

1.2、adddate

Specified date plus a specified number of days, to obtain a new date 

 SELECT ADDDATE(now(),3),now() FROM emp;

1.3、LAST_DAY

Show the last day of the month

 

 

Published 143 original articles · won praise 40 · views 20000 +

Guess you like

Origin blog.csdn.net/LemonSnm/article/details/95484523
Recommended