This shows you the differences between two versions of the page.
c:mysql:mysql.h:mysql_affected_rows [2013/02/26 22:35] 158.181.88.241 |
c:mysql:mysql.h:mysql_affected_rows [2024/02/16 01:12] (current) |
||
---|---|---|---|
Line 6: | Line 6: | ||
==== description of mysql_affected_rows ==== | ==== description of mysql_affected_rows ==== | ||
- | mysql_affected_rows is in work by code-reference.com \\ | + | Returns the number of the last UPDATE , DELETE, INSERT. Can be called for UPDATE, DELETE, or INSERT statements directly to mysql_query(). In SELECT statements, mysql_affected_rows() works like mysql_num_rows(). |
- | if you are faster... don't hasitate and add it | + | |
compile with gcc mysql_affected_rows.c -o mysql_affected_rows `mysql_config –cflags –libs` -Wall | compile with gcc mysql_affected_rows.c -o mysql_affected_rows `mysql_config –cflags –libs` -Wall |