DB_common::createSequence()

DB_common::createSequence() -- Create a new sequence

Synopsis

integer createSequence (string $seq_name)

Description

See "Introduction - Sequences"

Parameter

string $seq_name

name of the new sequence to create

Return value

integer - DB_OK or DB_Error, if fail

Throws

Table 21-1. Possible PEAR_Error values

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

This function can not be called statically.

See

DB::nextId(), DB::dropSequence()