Oracle
 sql >> Database >  >> RDS >> Oracle

creazione di sequenze in Oracle

Potresti farlo con un po 'di PL/SQL:

declare
  v_startval integer;
begin
  select max(empid)+1 into v_startval from mytemp;
  execute immediate 'create sequence mytemp_seq start with ' || v_startval;
end;