1 個回答
- 最新
- 最多得票
- 最多評論
0
This is an old school answer but you could do it with something like:
SELECT * FROM foo WHERE ... UNION ALL select count(*), NULL from foo WHERE ...;
The last row will contain the count of the query
已回答 3 年前
This is an old school answer but you could do it with something like:
SELECT * FROM foo WHERE ... UNION ALL select count(*), NULL from foo WHERE ...;
The last row will contain the count of the query