[MySQL] mysql date functions

Mysql date functions :

SELECT NOW(),CURDATE(),CURTIME()

Result :

NOW() CURDATE() CURTIME()
2016-05-03 09:58:20 2016-05-03 09:58:20

Yeah, it is the time when I execute the command.

To be honest, the ressource is from w3schools, a very good website to start dev.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s