We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
请问这段代码这样实现的意义? if (offset > 0) { pagingSelect.append("select * from ( select row_.*, rownum rownum_ from ( "); } else { pagingSelect.append("select * from ( "); } 现在出现的问题是:由于第一次第二次分页查询SQL不一样,出现分页不正确的问题,检查发现rownum错乱,如果把SQL追加order by 则可以解决这个问题,不加的情况下会出现这个问题,目前遇到的是多表查询。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
请问这段代码这样实现的意义?
if (offset > 0) {
pagingSelect.append("select * from ( select row_.*, rownum rownum_ from ( ");
}
else {
pagingSelect.append("select * from ( ");
}
现在出现的问题是:由于第一次第二次分页查询SQL不一样,出现分页不正确的问题,检查发现rownum错乱,如果把SQL追加order by 则可以解决这个问题,不加的情况下会出现这个问题,目前遇到的是多表查询。
The text was updated successfully, but these errors were encountered: