我想知道是否有任何方式在PL/SQL过程的声明内有一个if语句。例如:PL/SQL如果里面声明
procedure testing (no IN NUMBER, name IN VARCHAR2) IS
if no = 0 then
cursor c is
select * from table where name = name;
else
cursor c is
select * from table where name = name;
end if;
BEGIN
--work with cursor c
END testing;
这或多或少是它的意图。
不......你可以嵌套PL/SQL块,所以在开始时有一个声明。 – Ben