在mysql中可以通过“select date_format('2008-08-08 08:08:08', '%Y%m%d%H%i%s');”语句将日期类型转为字符串。
推荐:《mysql视频教程》
MySQL日期时间类型转换字符串
日期/时间类型转换成字符串类型
date_format(date,format):日期转字符串
select date_format('2008-08-08 08:08:08', '%Y%m%d%H%i%s');
time_format(time,format):时间转字符串
select time_format('08:08:08', '%H%i%s');
以上就是mysql如何把日期转换为字符串类型的详细内容,更多请关注php中文网其它相关文章!
已抢186982个
抢已抢67461个
抢已抢353654个
抢已抢668160个
抢已抢123569个
抢已抢25428个
抢