刚才用mysql client试了下
mysql> delimiter ;;
mysql> select * from t1;
-> insert into t1 select 4;
-> ;
-> select ;
-> ;;
+------+
| a |
+------+
| 1 |
| 1 |
+------+
2 rows in set (0.00 sec)
Query OK, 1 row affected (0.01 sec)
Records: 1 Duplicates: 0 Warnings: 0
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';
select' at line 1
mysql>
抓到的包
HX,3
select * from t1;
insert into t1 select 4;
select ;
HXy9
报错是因为select ;发到服务端了 楼主的无报错推断应该是odbc就把非法的消化掉了