MDB_Common::createSequence() – create a new sequence


require_once 'MDB.php';

integer createSequence ( string $seq_name , integer $start )


string $seq_name

name of the new sequence to create

integer $start

starting value of the sequence

Return value

integer - MDB_OK or MDB_Error, if fail


Possible PEAR_Error values
Error code Error message Reason Solution
every error code   Database specific error Check the name of the sequence. If correct, probably a bug in the sequence implementation


This function can not be called statically.

Number of affected rows (Previous) returns the current free id of a sequence (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.