用decode函数例如select decode(字段名,'条件1','值1','条件2','值2',默认值') from 表名 或者 case when 如果是在pl/sql块中可以用 if 条件 then else if 条件 then end if;
select * from A,B where 1 or 2;
case when?
问题补充一下 目的不是很明确