日期相关

select now(),unix_timestamp(now()),unix_timestamp(),from_unixtime(unix_timestamp()),curdate(),curtime(),\
week('2017-07-24'),year('2017-07-24'),hour('16:15:11'),date_format('2017-07-24','%m-%d,%y');

其他常用

select database(),version(),user(),inet_aton('118.11.22.33'),password('1'),md5('1');

数据dml

select last_insert_id();

 

 posted on 2017-07-24 16:28  ChaseForFuture  阅读(281)  评论(0)    收藏  举报