create or replace procedure P_new
as
v_trainingClassID varchar(50);begin
select name from zzxk_trainingclass where name = '55'
end;
execute P_new;
-------
我在plsql develop 创建了一个 存储过程 然后在sql 窗口里执行execute P_new;
为什么提示我无效的sql语句呀
as
v_trainingClassID varchar(50);begin
select name from zzxk_trainingclass where name = '55'
end;
execute P_new;
-------
我在plsql develop 创建了一个 存储过程 然后在sql 窗口里执行execute P_new;
为什么提示我无效的sql语句呀
--执行
declare
--
begin
P_new;
end;--你的过程也是有问题的,select的name没有赋值给变量,改成:
select name into v_trainingClassID from zzxk_trainingclass where name = '55';
execute P_new;
你这个procedure估计编译都没有通过的吧。