Hi
I'm trying to create a sequence using a sql plus variable to define the maximum value, but I get the following exception:
SQL> undefine maxminute
variable maxminute number
exec :maxminute := 1440;
begin
execute immediate 'create sequence a_seq increment by 1 maxvalue :1 start with 1 cycle'
using :maxminute;
end;
/SQL> SQL>
PL/SQL procedure successfully completed.
SQL> SQL> 2 3 4 5
begin
*
ERROR at line 1:
ORA-01722: invalid number
ORA-06512: at line 2
Can anybody help with this ?