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