create table test(
age varchar2(10)
)
select decode(age,'',1,0) age from test;
结果:
age
-----------
1
select decode(age,null,1,0) age from test;
结果:
age
----------
1
create table test(
age varchar2(10)
)
select decode(age,'',1,0) age from test;
结果:
age
-----------
1
select decode(age,null,1,0) age from test;
结果:
age
----------
1