Mysql time of acquisition

// get the current time SYSDATE () or now () 
SELECT SYSDATE ()
 // to get the current time as long as the date of writing 
SELECT DATE_FORMAT (sysdate (), ' %% Y-M-% D ' );


select date_format(NOW(), '%Y-%m-%d %H:%i:%s');

 

Guess you like

Origin www.cnblogs.com/Loners/p/12274040.html