mysql number of records in cursor without iterating?

前端 未结 2 1562
耶瑟儿~
耶瑟儿~ 2021-01-12 05:04

I am trying to write mysql procedure for below logic,

select id, fullname from users where fullname like concat(lastname, \' \', firstname, \' (\' , middlena         


        
2条回答
  •  渐次进展
    2021-01-12 05:37

    Include SQL_CALC_FOUND_ROWS in your cursor select.Then on fetch use FOUND_ROWS(). It gives the number of records

提交回复
热议问题