DB_common::createSequence()
Параметр
- 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.
Throws
Таблица 35-1. Возможные значения PEAR_Error
Error code | Error message | Reason | Solution |
---|---|---|---|
every error code | Database specific error | Check the name of the sequence. If correct, probably a bug in the sequence implementation |
Заметка
Эта функция не должна вызываться статически.
Внимание |
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. |
Пример
Пример 35-1. Using createSequence()
|
Пред. | Начало | След. |
DB_common::commit() | Уровень выше | DB_common::disconnect() |