in reply to using sequences with dbi
In "standard SQL" make sure if it is a non-number put single quotes around it. Sequence.nextval & Sequence.currval are like SYSDATE they are functions in the Database so you don't single quote them.$sth = $dbh->prepare("insert into table (blah_key, blah_name) values ( +blah_seq.nextval, '$blah_name')");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: using sequences with dbi
by runrig (Abbot) on Oct 04, 2001 at 00:48 UTC | |
by BigJoe (Curate) on Oct 04, 2001 at 00:56 UTC | |
by tommyw (Hermit) on Oct 04, 2001 at 01:09 UTC | |
by trantor (Chaplain) on Oct 04, 2001 at 14:16 UTC | |
by runrig (Abbot) on Oct 04, 2001 at 01:14 UTC |