Re: Pear DB LastInsertID
| From: | Jonas Koch Bentzen | Date: | Sun, 14 Jul 2002 15:49:34 +0000 |
| Subject: | Re: Pear DB LastInsertID | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1880@lists.php.net to get a copy of this message | ||
shaggy@vip.bg skrev:
Anyway I use PEAR sequences but I don't like the fact that it creates a separate table in MySQL for every sequenceI don't see it as a problem at all, because you never have to care about, even look at, the sequence tables. Say you're making an open source application... You write a script that creates the tables and runs DB::createSequence() for each table. Then, in your application, you use DB::nextId() to handle the sequences. You never have to look at or do something with the sequence tables.