How we can use mysql_affected_rows() in stored procedure

后端 未结 3 1804
清酒与你
清酒与你 2021-02-07 04:13

How we can use mysql_affected_rows() in stored procedure..

3条回答
  •  灰色年华
    2021-02-07 05:03

    Use the ROW_COUNT() information function.

    ROW_COUNT() returns the number of rows changed, deleted, or inserted by the last statement if it was an UPDATE, DELETE, or INSERT. For other statements, the value may not be meaningful.

    The ROW_COUNT() value is the same as the value from the mysql_affected_rows() C API function and the row count that the mysql client displays following statement execution.

提交回复
热议问题