create table test(
id int,
ms varchar2(20)
);
insert into test
select 1,'aa' from dual
union all
select 2,'23' from dual;
commit;
select * from test a where a.id = 1 or to_number(a.ms)=23; --OK
select * from test a where a.id = 2 or to_n ...
↧