in reply to Re^2: DBD ERROR: error possibly near <*> indicator at char
in thread DBD ERROR: error possibly near <*> indicator at char

Better to use a sequence:
create or replace sequence prod_seq minvalue 1 nomaxvalue start with x +xxx increment by 1 cache 20 noorder nocycle
Then your insert select can use the nextval function:
insert into prod (ss) select prod_seq.nextval from dual
You need to create the sequence only once, but be sure to set the "start with xxxx" to a value higher than anything in your table.

Paul

Replies are listed 'Best First'.
Re^4: DBD ERROR: error possibly near <*> indicator at char
by shalu (Initiate) on Sep 21, 2010 at 13:36 UTC

    Its not SQL statment issue...

    I guess its perl problem MY SQL statment runs fine but thx for updating me on sequence