Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Christopher Finke
July 15, 2004, 4:20 pm
rate this thread
Then I can get the next ID of that sequence like this:
$id = $db->nextId('mySequence');
But how do I initialize the sequence to have the appropriate starting value
based on the table I'm using it as a unique key for? For example, I have a
users table that has a unique user_id column. How do I make it so that the
sequence picks up where the user_id column in the table leaves off?