sqlyogのバグ、SELECT ROW_COUNT()は-1を返します.
mysql> INSERT IGNORE INTO b(c1,c2)VALUES(144,100);SELECT ROW_COUNT();
Query OK, 1 row affected (0.00 sec)
+-------------+
| ROW_COUNT() |
+-------------+
| 1 |
+-------------+
1 row in set (0.00 sec)
sqlyogツールでSELECT ROW_COUNT(); 常に-1を返します
バグのはずだ