如何检查一个查询中的值 return 是否存在于 pl sql 中的游标上
How to check value return from one query exist on a cursor in pl sql
我有一个这样的光标
cursor samp_emp is
select distinct name
from employee;
我想检查是否
'john'
游标上存在。是否存在任何内置函数来检查游标上是否存在值?
without loop through cursor is there anyway of checking if the value exist on the cursor?
不,如果您想检查一个值是否存在于游标中,那么您将需要打开游标并循环遍历所有值,直到找到它或处理完所有行。
is there are any inbuilt function to check if value exist on a cursor that loop through cursor and check?
没有
我有一个这样的光标
cursor samp_emp is
select distinct name
from employee;
我想检查是否
'john'
游标上存在。是否存在任何内置函数来检查游标上是否存在值?
without loop through cursor is there anyway of checking if the value exist on the cursor?
不,如果您想检查一个值是否存在于游标中,那么您将需要打开游标并循环遍历所有值,直到找到它或处理完所有行。
is there are any inbuilt function to check if value exist on a cursor that loop through cursor and check?
没有