Does MySQL have an equivalent SQL statement SET NOCOUNT ON?
SET NOCOUNT ON
SET NOCOUNT ON stops the message indicating the number of rows affected by the Transact-SQL statement from returning as part of the results .
MySQL does not report the number of rows affected by the query, so there is no such function.
If you want, you can find out about the number of rows affected by the ROW_COUNT () function immediately after the request:
DELETE FROM mytable WHERE name="John"; SELECT ROW_COUNT();
As far as I know, there is no analogue.