muzirigel 2019-06-28
select now();
select UNIX_TIMESTAMP('2017-06-10 13:02:18'); --1497070938
select FROM_UNIXTIME(1497070938, '%Y-%m-%d %H:%i:%S'); --2017-06-10 13:02:18 select FROM_UNIXTIME(1497070938); --2017-06-10 13:02:18
select curtime(),current_time(),time(now());
select curdate(),current_date(),date(now());
select datediff('2008-08-08', '2008-08-01'); -- 7