Avinash
Avinash

Reputation: 72

How can I get total count of result sets in Yii Framework

In Yii Framework I call SQL procedure getData() and I got multiple result sets using following code.

     $resultSets = Yii::app()->db->createCommand("call getData()")->query();

How can I get total count of result sets which I got in $resultSets. Any other suggestion so I can loop this as per result sets count.

Follow this for details My Procedure which generate result sets

Upvotes: 1

Views: 302

Answers (1)

hamed
hamed

Reputation: 8033

count($resultSets) returns you size of $resultSets.

Upvotes: 1

Related Questions