PEAR-Handbuch | ||
---|---|---|
Zurück | Nach vorne |
Deletes data from the database, either using primary key or based on a whereAdd() method call. By default the delete will base it's 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)
Tabelle 34-1. Mögliche Fehler-Arten
Error code | Error message | Meaning | Solution |
---|---|---|---|
DB_* | „*“ | see PEAR::DB | see PEAR::DB |
DB_DATAOBJECT_ERROR_NODATA | „delete: No Data specifed for query $condition“ |
Beispiel 34-1. Simple Delete
|
Beispiel 34-2. Resulting SQL
|
Zurück | Zum Anfang | Nach vorne |
->update() | Nach oben | Selecting Specific data (SELECT) |