Home > Q&A > body text
Can the data array queried using SQL statements be paginated? $list=query($sql); It seems that the paginate() method cannot be used
2018-03-27 10:38:33
You can use limit
There are two types of paging, one is paging when querying data with mysql, and the other is paging of data queried by sql statement. Is LZ asking about the latter?
It is the data queried using sql statement, which is an array.
Oh, I'll try, thank you
If LZ wants to paginate the queried array, just convert the array to JSON.