(if($p1=a,sql("sss","select * from a ",1),sql("sss","select * from b ",1),1))
if($p1='a',sql("sss","select * from a ",1),sql("sss","select * from b ",1))