Re: how to delete a table?
Posted by:
Jay Pipes
Date: June 29, 2005 09:32PM
Sorry, from your original post, it sounded like you were asking if you could delete a table, but not get rid of it's contents...which is impossbile.
Deleting a table from the database is known as DROPPING the table. In fact, when removing any object from the MySQL system (as opposed to DELETE records from a table object), you use the term DROP.
So,
DROP TABLE table_name;
removes a table.
DROP DATABASE db_name;
removes a database, and so on.
Jay Pipes
Community Relations Manager, North America, MySQL Inc.
Got Cluster?
http://www.mysql.com/cluster
Personal:
http://jpipes.com
Subject
Written By
Posted
Re: how to delete a table?
June 29, 2005 09:32PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.