Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个接口来运行 SQL 查询(C++ 和 QT),但我想分页并计算结果。
就像是:
select count (User select) as count and select (user select) limit 100;
例子:
select count (select * from tbl_data where id >10);
有没有办法做到这一点或使用 SQLITE3 库来做到这一点?
问候。
我找到了一个方法
select count(*) from (select tbl_name, sql FROM sqlite_master WHERE type='table') as data;
谢谢