Oracle PL/SQL存储过程
createorreplaceproceduredelete_tableasiinteger;strvarchar2(50);begini:=0;whilei<11100...
create or replace procedure delete_table
as
i integer;
str varchar2(50);
begin
i := 0;
while i<11100 loop
begin
str:= 'delete table table_'||i;
i := i+1;
execute immediate str;
end;
end loop;
end;
commit;
哪儿有错,请帮忙改下,谢谢 展开
as
i integer;
str varchar2(50);
begin
i := 0;
while i<11100 loop
begin
str:= 'delete table table_'||i;
i := i+1;
execute immediate str;
end;
end loop;
end;
commit;
哪儿有错,请帮忙改下,谢谢 展开
3个回答
展开全部
create or replace procedure delete_table
as
i integer;
str varchar2(50);
begin
i := 0;
while i<11100 loop
begin
str:= 'delete table table_'||i;
i := i+1;
execute immediate str;
end;
end loop;
commit; --------------------------------
end delete_table;----------------------------
end 后面加存储过程名字。commit 提上面一行
as
i integer;
str varchar2(50);
begin
i := 0;
while i<11100 loop
begin
str:= 'delete table table_'||i;
i := i+1;
execute immediate str;
end;
end loop;
commit; --------------------------------
end delete_table;----------------------------
end 后面加存储过程名字。commit 提上面一行
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
ZESTRON
2024-09-04 广告
2024-09-04 广告
在Dr. O.K. Wack Chemie GmbH,我们高度重视ZESTRON的表界面分析技术。该技术通过深入研究材料表面与界面的性质,为提升产品质量与可靠性提供了有力支持。ZESTRON的表界面分析不仅涵盖了相变化、化学反应、吸附与解吸...
点击进入详情页
本回答由ZESTRON提供
展开全部
create or replace procedure delete_table
as
i integer;
str varchar2(50);
begin
i := 0;
while i<11100 loop
str:= 'delete table table_'||i;
i := i+1;
execute immediate str;
commit;
end loop;
end delete_table;
as
i integer;
str varchar2(50);
begin
i := 0;
while i<11100 loop
str:= 'delete table table_'||i;
i := i+1;
execute immediate str;
commit;
end loop;
end delete_table;
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
没错吧
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询