17,382
社区成员




select * from t1
where ('1'='1' and t1.a=b)
or ('1'='2' and t1.b=c)
[/quote]
谢谢!这个方法真的不错!select * from t1
where ('1'='1' and t1.a=b)
or ('1'='2' and t1.b=c)
[/quote]
不是 1 或 2的时候就有问题了select * from t1
where ('1'='1' and t1.a=b)
or ('1'='2' and t1.b=c)