用法如下:
select
case
when
exists(
1
from
t_test c
where
c.
name
=
'zhangsan'
and
c.age = 23 )
then
else
0
end
dual;