create or replace procedure PRC_zbl_zzz
is
begin
create table zbl_jh_tmp as select 1 from dual;
end;
存储过程中不能写建表语句吗
答案:2 悬赏:0 手机版
解决时间 2021-02-03 09:45
- 提问者网友:战皆罪
- 2021-02-03 02:08
最佳答案
- 五星知识达人网友:山河有幸埋战骨
- 2021-02-03 02:48
create or replace procedure PRC_zbl_zzz
is
begin
excute immediate 'create table zbl_jh_tmp as select 1 from dual';
end;
is
begin
excute immediate 'create table zbl_jh_tmp as select 1 from dual';
end;
全部回答
- 1楼网友:忘川信使
- 2021-02-03 04:27
create procedure db2admin.create_database()
specific db2admin.create_database
language sql
begin
declare ssql varchar(1000) ;
set ssql = 'create table a (id bigint not null)';
prepare s1 from ssql;
execute s1;
end
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯