->update() | Selecting Specific data (SELECT) |
DB_DataObject | |
PEAR Manual | |
int $DB_DataObject->delete (
boolean $useWhere
)
Deletes data from the database, either using primary key or based on a whereAdd() method call. By default the delete will base its query on the set variables, however if you wish to use the whereAdd() method you should set the $useWhere parameter to DB_DATAOBJECT_WHEREADD_ONLY.
boolean $use_where - use the whereAdd() conditions (by default, delete will only use primary keys)
int number of rows affected or FALSE on failure
This function can not be called statically.
Simple Delete
|
Resulting SQL
|
->update() | Selecting Specific data (SELECT) |
DB_DataObject | |
PEAR Manual | |