How to use MySQL 5 Part 4: Delete Data |
||||||||||||
This article and tutorial describes and demonstrates how you can:
-
[ click here ] Delete data from tables using the DELETE command
-
[ click here ] Delete tables and databases using the DROP command
The MySQL DELETE command is how you remove information in database tables you create and use. It is the primary way of deleting rows of information from your mysql database.
DELETE SYNTAX
Steps To Delete Data using the |
Visual Demonstration |
|---|---|
|
Syntax:
DELETE FROM ItemTable WHERE ItemName='Hamburger'
" For the single-table syntax, the DELETE statement deletes rows from tbl_name and returns the number of rows deleted. The WHERE clause, if given, specifies the conditions that identify which rows to delete. With no WHERE clause, all rows are deleted. ... "
[ return to top ]
The MySQL DROP command is how you can delete a table or database. It is the a way of removing your mysql table or mysql database.
DROP SYNTAX
Steps To Delete Tables using the |
Visual Demonstration |
|---|---|
|
Syntax:
DROP TABLE MyTable;
"DROP TABLE removes one or more tables. ... "
Steps To Delete Databases using the |
Visual Demonstration |
|---|---|
|
Syntax:
DROP DATABASE MyDatabase;
"DROP DATABASE drops all tables in the database and deletes the database. ... "
[ return to top ]













