Sail E0 Webinar
Question
Which one of the following method is used to retrieve the number of rows affected by an INSERT, UPDATE, or DELETE query?
Options:
A .  num_rows()
B .  affected_rows()
C .  changed_rows()
D .  new_rows()
Answer: Option B


The method num_rows() is only useful for determining the number of rows retrieved by a SELECT query. But to retrieve the number of rows affected by INSERT, UPDATE, or DELETE query, use affected_rows().



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers