DB_common::dropSequence() -- Deletes a sequence
Parámetro
- string
$seqName
name of the sequence to
delete
Lanza
Tabla 35-1. Posibles valores de 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.
|
Nota
Esta función no puede ser llamada
estáticamente.
| Aviso |
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.
|
Ejemplo
Ejemplo 35-1. Using dropSequence()
<?php
// Once you have a valid DB object named $db...
$tmp = $db->dropSequence('mySequence');
if (PEAR::isError($tmp)) {
die($tmp->getMessage());
}
?>
|
|