get affected rows in exec command