My sql tutorial - dropping tables - deleting mysql tables - mysql drop table command
my sql tutorial, dropping tables, deleting mysql tables, mysql drop table command
my sql tutorial - Dropping tablesGo to my sql tutorial - Dropping tablesSQL tutorialGo to SQL tutorialWeb development tutorialsGo to web development tutorialsHomepage

my sql tutorial - Dropping tables

To remove all entries from the table we can issue the DELETE statement without any conditions.

DELETE from employee_data;
Query OK, 0 rows affected (0.00 sec)

However, this does not delete the table. The table still remains, which you can check with SHOW TABLES;

mysql> SHOW TABLES;
+---------------------+
| Tables in employees |
+---------------------+
| employee_data       |
+---------------------+
1 rows in set (0.00 sec)

To delete the table, we issue a DROP table command.

DROP TABLE employee_data;
Query OK, 0 rows affected (0.01 sec)

Now, we won't get this table in SHOW TABLES; listing



Back Next


AddThis Social Bookmark Button
Page contents: My sql tutorial - dropping tables - deleting mysql tables - mysql drop table command

Page URL: http://www.webdevelopersnotes.com/tutorials/sql/ my_sql_tutorial_dropping_tables.php3



Join Mailing List


Feedback/Questions




50+ web hosting FAQs

Search engine for your website

Free software from Google - The Google Pack Collection

Create your own search engine
Search WebDevelopersNotes.com