How can I count the numbers of rows that a MySQL query returned?

后端 未结 11 1906
北海茫月
北海茫月 2020-11-28 04:51

How can I count the number of rows that a MySQL query returned?

11条回答
  •  醉梦人生
    2020-11-28 05:23

    In the event you have to solve the problem with simple SQL you might use an inline view.

    select count(*) from (select * from foo) as x;
    

提交回复
热议问题