How to return number of errected rows

sc_exec_sql(“update table_a set name=‘abc’ where id=‘1’”);
when i execute this query how to know how many rows effected.

If you use mysql you can ask for this: http://php.net/manual/en/function.mysql-affected-rows.php

i’m using sc macros.

Think Albert is saying that u should use SQL instead, not much of a code change then u can echo the results