用了date_format后在程序中查询出的结果为System.Byte[],而在数据库中查正常
解决办法为:加Convert转换编码
黑色头发:http://heisetoufa.iteye.com/
解决办法为:加Convert转换编码
select Convert(date_format(datetime, '%Y-%m-%d') using utf8) as datetime form tb
黑色头发:http://heisetoufa.iteye.com/