Postgresql paging query error "LIMIT #,# syntax is not supported"

An error is reported when using SQL statements to query the Postgresql database:

LIMIT #,# syntax is not supported 建议:Use separate LIMIT and OFFSET clauses.

reason:

Postgresql does not support the LIMIT #, # syntax, it is recommended to use the LIMIT and OFFSET clauses format

solution:

//从0开始查10条数据
select * from table LIMIT 10 OFFSET 0

Guess you like

Origin blog.csdn.net/watson2017/article/details/131309050