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