The MySQL ROW_COUNT() function always returns when executed from within Toad editor window. The row_count() function will return the number of rows affected by the prededing update or insert operation. ROW_COUNT() works fine from within the MySQL command-line client, "mysql," and from within stored procedures and functions. But it always returns zero (0) when called from the Toad editor for any SQL whether it update, insert, delete, etc. Refer to the manual https://dev.mysql.com/doc/refman/5.6/en/information-functions.html#function_row-count for its official behavior.
↧