ob:4.3.0.1
mysql> create outline ol_1 on select/*+max_concurrent(0)*/ * from t1 where b =1 and c = 1;
Query OK, 0 rows affected (0.10 sec)
mysql> select * from t1 where b =1 and c = 1;
ERROR 5268 (HY000): SQL reach max concurrent num 0
mysql> select * from t1 where b =1 and c = 2;
Empty set (0.00 sec)
mysql> create outline ol_2 on select/*+max_concurrent(0)*/ * from t1 where b =1 and c = ?;
ERROR 5264 (HY000): Outline 'select/*+max_concurrent(0)*/ * from t1 where b =1 and c = ?' already exists
mysql>
mysql> create outline ol_2 on select/*+max_concurrent(0)*/ * from t1 where b =1 and c = ?;
ERROR 5264 (HY000): Outline 'select/*+max_concurrent(0)*/ * from t1 where b =1 and c = ?' already exists
mysql>
mysql> select * from t1 where b =1 and c = 1;
ERROR 5268 (HY000): SQL reach max concurrent num 0
mysql> select * from t1 where b =1 and c = 2;
Empty set (0.00 sec)
这是官方的3.x文档上的demo演示,4.3就不可以。