from Salesmessage s where 1 = 1 ORDER BY to_date(s.salesmDate,'mmmm-yy-dd') DESC
在hibernate 中写了这句话提示to_date找不到,是不是mysql中没有这个函数的,
这个按时间排序应该怎么写?
请各位大侠赐教.....
在hibernate 中写了这句话提示to_date找不到,是不是mysql中没有这个函数的,
这个按时间排序应该怎么写?
请各位大侠赐教.....
解决方案 »
- 求centos系统下 xtrabackup备份工具的下载安装文档!
- 求推荐关于MYSQL索引的资料
- 从1个表copy数据到另外1个表 case when
- 问一个sql排序问题
- 一个简单的sql语句
- 文章管理系统文章内容字段一般用什么类型?
- dx,能否给份mysql的源码,不胜感激! [email protected]
- Cygwin下如何安装CC?
- mysql 不停的重启,Log 报有InnoDB: Database page corruption on disk or a failed
- 随机出现 PHP Warning: mysql_connect()
- mysql 数据库分区
- 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