MySql截取DateTime字段的日期值

2015-07-24 11:31:53 · 作者: · 浏览: 5

用 DATE_FORMAT 来格式化日期字段

SELECT DATE_FORMAT(crt_time,'%Y-%m-%d')  FROM ad_n_advertise_t