MDB_Common::createSequence()

MDB_Common::createSequence() -- create a new sequence

Referentiesamenvatting

require_once 'MDB.php';

integer createSequence (string $seq_name, integer $start)

Beschrijving

See "Introduction - Sequences"

Parameter

string $seq_name

name of the new sequence to create

integer $start

starting value of the sequence

Return waarde

integer - MDB_OK or MDB_Error, if fail

Throws

Tabel 34-1. Mogelijke PEAR_Error waarden

Error codeError messageReasonSolution
every error code  Database specific error Check the name of the sequence. If correct, probably a bug in the sequence implementation

Note

Deze functie kan niet statisch worden aangeroepen.

Zie

MDB::nextId() , MDB::dropSequence()