RE: [PEAR] MDB - insert query

From: Date: Fri, 07 Mar 2003 16:18:03 +0000
Subject: RE: [PEAR] MDB - insert query
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-4090@lists.php.net to get a copy of this message
> -----Original Message----- > From: Christian Karlsen [mailto:christian@nlc.no] > Sent: Friday, March 07, 2003 4:21 PM > Since postgresql's auto increment function simply is a sequence, I guess I > just could use nextId() or currId() but that's not a desirable solution. Hi, this is what you will need to do however. Since MDB tries to give the same API for all supported databases it was decided to use the concept of sequences to generate unique id's. Auto increment also has the disadvantage of being linked to a specific column in a specific table. Sequences can be used for other things as well. Regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Reuchlinstr. 10-11 Raum 4.1.6 D-10553 Berlin (Tiergarten) Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07

« previous php.pear.general (#4090) next »