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
public void formatQuery(Sql sql) { Pager pager = sql.getContext().getPager(); // 需要进行分页 if (null != pager && pager.getPageNumber() > 0) sql.setSourceSql(sql.getSourceSql() + String.format(" LIMIT %d, %d", pager.getOffset(), pager.getPageSize())); }
这个“LIMIT %d, %d”建议最后使用占位符 “LIMIT @pageOffset, @pageSize”
The text was updated successfully, but these errors were encountered:
有区别吗? 最新的mysql会有差异?
Sorry, something went wrong.
No branches or pull requests
这个“LIMIT %d, %d”建议最后使用占位符 “LIMIT @pageOffset, @pageSize”
The text was updated successfully, but these errors were encountered: