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
답변함 2년 전
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