is there any way to know how many rows affected by a sql query?

Original text of this message