First Commit - Source Code from Reply
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
declare
|
||||
n number;
|
||||
begin
|
||||
select max(lov_id) + 1 into n from dbcgo_lov ;
|
||||
|
||||
DBMS_OUTPUT.Put_Line ('next lov id: ' || n);
|
||||
|
||||
begin
|
||||
EXECUTE IMMEDIATE ('drop sequence seq_lov');
|
||||
exception
|
||||
when others then
|
||||
null;
|
||||
end;
|
||||
|
||||
EXECUTE IMMEDIATE ('create sequence seq_lov start with ' || n);
|
||||
|
||||
|
||||
end;
|
||||
/
|
||||
|
||||
show errors;
|
||||
Reference in New Issue
Block a user