> On Wed, 14 Apr 1999, Michael Davis wrote:
>
> > The safest way is to select the nextval('seq_name') and then insert using
> > this value.
>
> I understand, I just thought something like, I do the insert, and then
> grab the value with:
>
> $insertid = $sth->{'insertid'};
The OID is returned from the insert. Use that, or use it to look up the
field you want.
--
Bruce Momjian | http://www.op.net/~candle
[EMAIL PROTECTED] | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
- [GENERAL] How to get seq after insert Brian
- RE: [GENERAL] How to get seq after insert Michael Davis
- RE: [GENERAL] How to get seq after insert Brian
- Re: [GENERAL] How to get seq after insert] Bruce Momjian
- Re: [GENERAL] How to get seq after inse... Karl DeBisschop
- [GENERAL] Object-oriented stuff and pos... Chris Bitmead
- Re: [GENERAL] Object-oriented stuf... Jos� Soares
- Re: [GENERAL] Object-oriented ... Chris Bitmead
- Re: [GENERAL] How to get seq after insert Ross J. Reedstrom
- RE: [GENERAL] How to get seq after insert Michael J Davis
