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

Postgresql with sql pagination #107

Closed
bjverde opened this issue Nov 15, 2019 · 1 comment
Closed

Postgresql with sql pagination #107

bjverde opened this issue Nov 15, 2019 · 1 comment

Comments

@bjverde
Copy link
Owner

bjverde commented Nov 15, 2019

LIMIT and OFFSET work PostgreSQL >= 9.4

See documentation

See on code

  • TGeneratorHelper::getConfigByDBMS
  • TCreateDAO::addSqlSelectAllPagination
@bjverde
Copy link
Owner Author

bjverde commented Nov 16, 2019

SELECT * FROM pessoal.tb_apoio order by cd_apoio LIMIT 5 OFFSET 10 ;

LIMIT qtd row
OFFSET = row start - 1

bjverde added a commit that referenced this issue Nov 16, 2019
bjverde added a commit that referenced this issue Nov 16, 2019
bjverde added a commit that referenced this issue Nov 16, 2019
bjverde added a commit that referenced this issue Nov 16, 2019
@bjverde bjverde closed this as completed Nov 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant