MDB_Common::createSequence()

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

概要

require_once 'MDB.php';

integer createSequence (string $seq_name, integer $start)

説明

See "Introduction - Sequences"

パラメータ

string $seq_name

name of the new sequence to create

integer $start

starting value of the sequence

返り値

integer - MDB_OK or MDB_Error, if fail

例外・エラー

表 33-1PEAR_Error の値

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

注意

この関数は、スタティックにコールする ことはできません。

参照

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