create or replace procedure pro_search(id number,data out sys_refcursor)
as
begin
open data for select * from NATION y where y.id=id;
end;
Nation是民族表,加了id作为条件,为什么我的这个存储过程查出来的是所有的数据呢
...全文
2704打赏收藏
用plsql写了一个存储过程,为什么条件无效呢
create or replace procedure pro_search(id number,data out sys_refcursor) as begin open data for select * from NATION y where y.id=id; end; Nation是民族表,加了id作为条件,为什么我的这个存储过程查出来的是所有的数据呢