How to get number of rows affected, while executing MySQL query from bash?

Put

SELECT ROW_COUNT();

as the last statement in your batch and parse the output

Leave a Comment