START MED KLAUSUL accepterer et heltal. Du kan danne "Create sequence"-sætningen dynamisk og derefter udføre den ved at bruge execute immediate for at opnå dette.
declare
l_new_seq INTEGER;
begin
select max(id) + 1
into l_new_seq
from test_table;
execute immediate 'Create sequence test_seq_2
start with ' || l_new_seq ||
' increment by 1';
end;
/
Tjek disse links.
http://download.oracle.com/docs /cd/B14117_01/server.101/b10759/statements_6014.htm
http://download.oracle .com/docs/cd/B19306_01/appdev.102/b14261/executeimmediate_statement.htm