Re: DB::createSequence(string $seq_name [ , integer start])

From: Date: Thu, 28 Nov 2002 06:43:55 +0000
Subject: Re: DB::createSequence(string $seq_name [ , integer start])
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11204@lists.php.net to get a copy of this message
> I will try, sory for my bad english, I'm french. Don't be, I am french too ;)) > > Do you mean mean you want to start a sequence from a certain value ? > Yes. > Imagine that you save all the content of your database in a xml file. When > you want to restore it (using DB) you delete all the content of your > tables and then you store the data from your xml file in the tables. You > need also to restore the value of sequences. For that, you can just drop > and create sequences, so you need to create a sequence with a starting > value. We could try to have a function to set the value of an existing > sequence but it's not possible in all database (postgres for ex.). Ok, i just wanted to be sure I got it well. Mm, i'm not sure how this problem could be addressed. Anyone ?

« previous php.pear.dev (#11204) next »