declare
v_sql varchar2(1000);
begin
v_sql :="create sequence TEMP_SEQ nocycle maxvalue 999999999999999 start with 1
order increment by 1 nocache ";
execute immediate v_sql;
end;
/说明:在过程、函数中等pl/sql块中不能直接执行ddl语句,如果需要,则使用动态执行
sql。execute immediate v_sql;
v_sql varchar2(1000);
begin
v_sql :="create sequence TEMP_SEQ nocycle maxvalue 999999999999999 start with 1
order increment by 1 nocache ";
execute immediate v_sql;
end;
/说明:在过程、函数中等pl/sql块中不能直接执行ddl语句,如果需要,则使用动态执行
sql。execute immediate v_sql;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货