In SQL Server to get the total number of rows affected by the last statement, you can use the system variable @@ROWCOUNT. Similarly, in MySQL you can find it using FOUND_ROWS () function.
The post MySQL – FOUND_ROWS() Function for Total Number of Rows Affected appeared first on Journey to SQL Authority with Pinal Dave.