怎么用oracle判断 表中是否存在某条数据 有主键

如何用oracle判断 表中是否存在某条数据 有主键
如何用oracle判断 表中是否存在某条数据 有主键

------解决方案--------------------
不同的环境,SQL不一样的。
直接判断一般都是select count(1) into :var from table where ....
用在其它sql中一般都是in,not in,exists,not exists子查询,例如
select * from table1 where table1.id in (select id from table2 where ......)