home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
- DELETE
-
-
- The delete command deletes rows from your table.
-
- SYNTAX:
-
- DELETE table_name
- [WHERE search_expression]
-
- Refer to the section on the select command for details on the
- where clause. The basic difference between the select and the
- delete is that with select, the rows are displayed, and with
- delete, the rows are deleted. Because of this, it is a smart
- idea to do a select before you do a delete so you can see the
- rows that you are going to delete.
-
- You can only delete complete rows. If you want to delete column
- data within a row, use the update command.
-
- EXAMPLES:
-
- Delete all data from the cust table.
-
- delete cust;
-
- Delete customers from the cust table whose rating is less than 10.
-
- delete cust
- where rating < 10;
-
-
-
- HOW TO RESTORE DATA YOU HAVE JUST DELETED
-
- Type it in again!!! (Therefore be very careful when you use this
- command).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DELETE-1
-
-