create or replace procedure kele8(para1 in number)
as
begin
if para1=0 then
dbms_output.put_line('更新失败!更新语句被退回');
end if;
end;declare
msql number;
update student t set t.name='王海' where t.id='20040712';
msql:=sql%rowcount;
call kele8(msql);
as
begin
if para1=0 then
dbms_output.put_line('更新失败!更新语句被退回');
end if;
end;declare
msql number;
update student t set t.name='王海' where t.id='20040712';
msql:=sql%rowcount;
call kele8(msql);
解决方案 »
- 求解释,这个select脚本,
- oracle 数据库 group by 的问题
- Oracle 查询问题
- Oracle Enterprise Manager Console撒语言开发的呀?
- oracle有关表空间的小问题
- jdbc:oracle:thin:@localhost:1521:Orac
- 请问ORACLE 8i在WINDOWS 2003 SERVER中安装后无法启动服务的问题!
- 请大家总结一下所有的oracle的命令和作用
- 如何增加一个在SQL PLUS中可以登陆的用户,急?
- 关于数据库设计的问题(觅高手!)
- oracle里返回一个简单表的表的记录集的存储过程怎么写。
- 关于一个Oracle 中 Case when 的用法(急)
msql number;
update student t set t.name='王海' where t.id='20040712';
msql:=sql%rowcount;
call kele8(msql); PLSQL块没有BEGIN END 的啊
as
msql number :=1;
begin
if para1==0 then
dbms_output.put_line('更新失败!更新语句被退回');
end if;
update student t set t.name='王海' where t.id='20040712';
msql:=sql%rowcount;
call kele8(msql);
end;
create or replace procedure mypro(para in varchar2)
as
begin
--执行para 参数para是一个sql语句,我该如何在存储过程内部执行呢? exec para 失败!
end;
as
begin
dbms_output.put_line('para:'||para);
EXECUTE IMMEDIATE (para);
EXECUTE IMMEDIATE ('COMMIT');
end;
--EXECUTE IMMEDIATE (para);
改为:
EXECUTE IMMEDIATE ('''||para||''');