from Salesmessage s where 1 = 1 ORDER BY to_date(s.salesmDate,'mmmm-yy-dd') DESC
在hibernate 中写了这句话提示to_date找不到,是不是mysql中没有这个函数的,
这个按时间排序应该怎么写?
请各位大侠赐教.....
在hibernate 中写了这句话提示to_date找不到,是不是mysql中没有这个函数的,
这个按时间排序应该怎么写?
请各位大侠赐教.....
ORDER BY DATE_FORMAT(s.salesmDate,'%Y-%m-%d') DESC
'截至2009-12-29 20:48:38 用户结帖率0.00%
当您的问题得到解答后请及时结贴.
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html