MySQL取得当前时间的函数是什么 格式化日期的函数是什么

如题所述

取得当前时间用 now() 就行。在数据库中格式化时间 用DATE_FORMA T(date, format) . 根据格式串format 格式化日期或日期和时间值date
温馨提示:答案为网友推荐,仅供参考
第1个回答  2017-03-09
试一下这个select date_format(now(),"%y-%m-%d")