各位,现我在oracle的存储过程中,有如下功能
if code ='123' and phone in('13444444','1355555')
then
returncode ='0001';
return;
end if;如少年宫是可以成立的
但是
我新建了一个表 比如xx_abc
我把号码加入xx_abc中
if code ='123' and phone in(select phone from xx_abc)
then
returncode ='0001';
return;
end if;这样的话就会出错。
(1): PLS-00405: subquery not allowed in this context
以前用SQL的,刚学ORACLE。还不太懂。请教各位高人,应该怎么做。谢谢