How can I get the number of rows 'returned' from a result set of a stored procedure

前端 未结 2 2015
耶瑟儿~
耶瑟儿~ 2020-12-11 23:52

Is there a way to get the number of rows \'returned\' from a stored procedure? I know the result set is not really returned so I can\'t select from it or count on it. I trie

相关标签:
2条回答
  • 2020-12-12 00:11
    SELECT COUNT(id) AS example name FROM tablename 
    
    0 讨论(0)
  • 2020-12-12 00:12

    Try This found_rows function

    http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_found-rows

    0 讨论(0)
提交回复
热议问题