Informix - 同时计数和分页

时间:2015-12-10 18:13:52

标签: pagination informix

目前我在Informix中这样做(获得分页和计数):

select a.*, b.total from (select skip 0 first 10 * from TABLE) a,(select count(*) total from TABLE) b

问题在于我重复相同的模式 - 我得到了所有结果的前十个结果,然后我计算了所有结果。

我想做这样的事情:

select *, count(*) from TABLE:

所以我可以更快地查询。有可能吗?

0 个答案:

没有答案
相关问题