我正在尝试使自己熟悉MySQL Rewrite Query Plugin,但是由于无法安装,因此无法在计算机上对其进行测试,但我只想知道一个快速问题: 例如,我写这样的东西:
INSERT INTO query_rewrite.rewrite_rules
(pattern, replacement) VALUES(
'`SELECT * FROM school.student WHERE id = ?`',
'SELECT * FROM school.student WHERE user_id = ?'
);
每次我调用原始查询时,原来的查询(SELECT * FROM school.student WHERE id = ?
会被新查询替换吗?还是只会发生一次?