select * from {if(${a}=1,表1,表2)} 这后面的if怎么写MySQL
select * from ${if(a=1,表1,表2)}
-------
上边错了应该这样
select * from ${if(a=1,"表1","表2")}