I'm updating some table and want to know how much rows were affected. Is there any wrapper over mysql_affected_rows? I didn't notice such action in the DB connection or CDbCommand
I'm updating some table and want to know how much rows were affected. Is there any wrapper over mysql_affected_rows? I didn't notice such action in the DB connection or CDbCommand
I think the execute() method of CDbCommand will return how many rows were affected by your update.
Read it careful.
AH… I read only description. read it several times and didn't even look at the return type… Thanks!