<Unknown column 'card_id' in 'order clause'>
来源:互联网 发布:app源码 带后台数据库 编辑:程序博客网 时间:2024/05/20 23:38
报错 ERROR [org.hibernate.util.JDBCExceptionReporter] - <Unknown column 'card_id' in 'order clause'>
原始sql :
SELECT xx,xx,card_id as cardId from xxx a where ... order by a.card_id
sql 类似就是这样,sql 执行不报错,但是再程序中报错。
原因是由于这块 order by 后的条件引用的是你结果集中的字段,所以应该是order by cardId
这个错误的具体为什么会是这个样子,目前不太清楚,希望哪个大神能够给出解答。
阅读全文
0 0
- <Unknown column 'card_id' in 'order clause'>
- com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'id' in 'order clause'
- Unknown column 'rownum' in 'where clause'解决方案
- Unknown column '安妮宝贝' in 'where clause'
- Unknown column '??????' in 'where clause'问题
- Unknown column 'xxx' in 'where clause'错误
- Unknown column 'ORGANIZATION_BANK' in 'where clause'
- 中文乱码 unknown column in 'where clause'
- mysql1054: Unknown column ... in 'on clause'
- Unkonw column 'xxx' in 'order clause'
- Column not found: 1054 Unknown column 'tl10709' in 'where clause'
- 查询避免Unknown column ‘xxx’ in ‘where clause’
- MySQL 1054错误 Unknown column .... in 'on clause'
- 查询避免Unknown column ‘xxx’ in ‘where clause’
- Unknown column 's.score' in 'having clause' 0.00020 sec error
- c#Bug Unknown column “张三” in 'where clause'问题解决
- 查询避免Unknown column ‘xxx’ in ‘where clause’
- msql查询中报错 Unknown column '黄色水果' in 'where clause'
- 计算器
- Ubuntu Windows分区挂载
- 看完让你彻底搞懂Websocket原理
- MATLAB 给定一组二维坐标,拟合曲线并且取曲线上任意点的坐标方法,或者均分定义域,得到对应值方法
- error LINK1123
- <Unknown column 'card_id' in 'order clause'>
- Javascript学习笔记(对象)
- 内排序——插入排序—直接插入(稳定)—希尔(不稳定)
- thinkphp5.0学习(十一):TP5.0杂项
- Cmake知识----编写CMakeLists.txt文件编译C/C++程序
- Canny算子检测轮廓
- GreenDao查询数据带缓存
- [spark streaming] DStream 和 DStreamGraph 解析
- Java编程思想(Thinking in Java)阅读笔记(仅供自身学习,持续更新)