0

I'm creating a interface to run a SQL query (C++ and QT), but i want to page and count the results.

Something like:

select count (User select) as count and select (user select) limit 100;

Example:

select count (select * from tbl_data where id >10);

Is there a way to do that or use the SQLITE3 library to do that?

Regards.

4

1 に答える 1

0

私は方法を発見しました

select count(*) from (select tbl_name, sql FROM sqlite_master WHERE type='table') as data;

ありがとう

于 2013-03-09T00:40:32.897 に答える