DB_common::createSequence()

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

Synopsis

Описание

See "Intro - Sequences"

Параметр

string $seq_name

name of the new sequence to create

To avoid problems with various database systems, sequence names should start with a letter and only contain letters, numbers and the underscore character.

Возвращаемое значение

integer - DB_OK or a DB_Error object on failure

Throws

Заметка

Эта функция не должна вызываться статически.

Внимание

When using PEAR DB's sequence methods, we strongly advise using these methods for all procedures, including the creation of the sequences. Do not use PEAR DB's methods to access sequences that were created directly in the DBMS. See the warning on the "Intro - Sequences" page complete information.

Пример

См. также

"Intro - Sequences", nextId(), dropSequence()

    Поддержать сайт на родительском проекте КГБ