DB_common::dropSequence()

DB_common::dropSequence() -- Deletes a sequence

Áttekintés

integer dropSequence (string $seqName)

Leírás

See "Intro - Sequences"

Paraméterek

string $seqName

name of the sequence to delete

Visszatérési érték

integer - DB_OK or a DB_Error object on failure

Lehetséges hibaértékek

Táblázat 35-1. Lehetséges PEAR_Error visszatérési értékek

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

Megjegyzés

Ez a függvény nem hívható statikusan.

Figyelem

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.

Példa

Lásd

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