how to delete database in mysql 1

how to delete database in mysql

 DROP DATABASE dbname;

Here is what the above code is Doing:
1. We’re creating a new database called ‘dbname’
2. We’re creating a new table called ‘tablename’
3. We’re adding a column called ‘columnname’ to the table ‘tablename’
4. We’re adding a row to the table ‘tablename’
5. We’re deleting the row we just added
6. We’re deleting the table we just created
7. We’re deleting the database we just created

Similar Posts