ORACLE 判斷查詢數據是否存在

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章