MySql截取DateTime字段的日期值

用 DATE_FORMAT 来格式化日期字段

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

你可能感兴趣的:(mysql,日期,格式化)