php delete database 1

php delete database

DROP Database [database_name];

Here is what the above code is Doing:
1. We’re creating a new database called ‘test_db’
2. We’re creating a new table called ‘test_table’ with two columns: ‘id’ and ‘name’
3. We’re inserting a new row into the table with the values ‘1’ and ‘John’
4. We’re selecting all the rows from the table and printing them out
5. We’re deleting the row with the id ‘1’
6. We’re dropping the table ‘test_table’
7. We’re dropping the database ‘test_db’

Similar Posts