select * from a where id=''; select * from b where id=''; select * from c where id=''; select * from d where id='';
------解决方案-------------------- 定义变量v_id select * from a where id=v_id; select * from b where id=v_id; select * from c where id=v_id; select * from d where id=v_id;
------解决方案-------------------- 绑定变量
------解决方案--------------------