Spring batch with column alias as sort key - malformed “where” statement

百般思念 提交于 2019-12-02 00:03:46
Sabir Khan

When you specify a column alias of SELECT as sort key, page - 1 ( i.e. except page -0 ) onward queries generated by Spring Batch use that alias in WHERE clause as shown in your question and as per this SO question , using a column alias in WHERE clause is not allowed if evaluation of SELECT clause is not forced before WHERE clause.

So to answer your question - No, you can't use an alias as sort key unless you force alias evaluation as suggested in other SQL question.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!