In fact, MySQL provides many convenient functions in everyday life without any effort on the part of the user -
NOW () it creates the date and time as in the current script, whereas CURDATE () is only the release date, CURTIME () , we can use one of them according to our need with CAST or merge others to calculate it, MySQL is rich in these types of functions .
NOTE. - . You can see the difference using the select NOW () query as NOWDATETIME, CURDATE () as NOWDATE, CURTIME () as NOWTIME;
Sonpal singh Sengar Sep 14 '17 at 9:48 on 2017-09-14 09:48
source share