Saturday, 23 July 2016

Drop database


Use the statement ‘DROP DATABASE database_name’ to drop a database.
mysql> SHOW databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| college            |
| mysql              |
| performance_schema |
| sample             |
| sys                |
+--------------------+
6 rows in set (0.00 sec)

mysql> DROP DATABASE college;
Query OK, 0 rows affected (0.01 sec)

mysql> 
mysql> SHOW databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sample             |
| sys                |
+--------------------+
5 rows in set (0.00 sec)





Previous                                                 Next                                                 Home

No comments:

Post a Comment