Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于sqlserver2012 不能正确分页的问题 #267

Closed
piaoxuew opened this issue Aug 23, 2018 · 5 comments
Closed

关于sqlserver2012 不能正确分页的问题 #267

piaoxuew opened this issue Aug 23, 2018 · 5 comments

Comments

@piaoxuew
Copy link

sqlserver2012进行分页时,拼装最终sql语句缺少order by,需要用户自行在sql语句中添加,否则出错,请作者在下一版本修复该问题

@abel533
Copy link
Collaborator

abel533 commented Aug 26, 2018

你用的什么版本?

@piaoxuew
Copy link
Author

piaoxuew commented Sep 4, 2018

@abel533 mybatis 3.4.6 pagehelper-5.1.5.jar 这两个,在xml配置sql语句中依然要添加order by ,且当查询语句中包含了字段 disable 分页查询会出错,只有写为[disable]才正确

@zhengweitang
Copy link

请问这个问题解决了吗

@piaoxuew
Copy link
Author

已经解决了

@yf-chen
Copy link

yf-chen commented Jul 25, 2019

麻烦帮忙看看我这个问题
mybatis-book/book#74

@abel533 abel533 closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants