数据库切换oracle to mysql的坑--Caused by: java.sql.SQLException: Column '' not found.

来源:互联网 发布:oa数据库设计文档 编辑:程序博客网 时间:2024/06/05 06:39

环境为hibernate3

解决办法:1.在sql语句外包一层select * from

2.在查询字段中的常量用函数替换

例: selct 0 as constant from dual>>>>> select if(sysdate() = 0,0,0) from dual

(不是很懂原理


阅读全文
0 0
原创粉丝点击