How to get number of rows affected, while executing MySQL query from bash? May 10, 2023 by Tarik Put SELECT ROW_COUNT(); as the last statement in your batch and parse the output