|
Sometimes we may decide that we need to delete of an entire database in the RDBMS. In fact, if we cannot do so, we would be faced with a maintenance nightmare. Fortunately, SQL allows us to do it, as we can use the DROP DATABASE command. The syntax for DROP DATABASE is
DROP TABLE "database_name"
So, if we wanted to drop the table called customer that we created in the CREATE DATABASE section, we simply type
DROP TABLE holidays
Please note that any table that is still in the database will also disappear once the database is dropped.
SQL INSERT INTO >>
Link to this page: If you find this page useful, we encourage you to link to this page. Simply copy and paste the code below to your website, blog, or profile.
Copyright © 2012 1keydata.com All Rights Reserved.
Privacy Policy
|