MDB_Common::limitQuery() | MDB_Common::numCols() |
MDB | |
PEAR Manual | |
require_once 'MDB.php'; |
resource nextId
(
string $seq_name
, boolean
$onDemand = TRUE
)
name of the sequence
when TRUE the sequence is automatic created, if it not exists.
resource - a free id or a MDB_Error, if fail
Error code | Error message | Reason | Solution |
MDB_ERROR_NOT_CAPABLE | NULL | Function is not supported by the database backend | Switch to another database system, if you really need this feature. |
MDB_ERROR_NOT_LOCKED | NULL | Locking of sequence table fails | Database specific, check documention of your database, |
MDB_ERROR_NOSUCHTABLE | NULL | Sequence table was not found | Try to create a new sequence or if you are sure, a sequence was already create, check database integrity |
This function can not be called statically.
MDB_Common::limitQuery() | MDB_Common::numCols() |
MDB | |
PEAR Manual | |