Hello, in this video we are going to look at deleting a table using the drop query. So the Trump pay query which I covered in the previous video, basically delete all of the rows in a particular table, the table still exists the Delete query, which was in the video before that deletes a particular row or rows based on a where condition, the drop is a monitors rows or not in the actual table, you would delete the entire table. So be very careful when you're doing this. But I think it's important to show you and if there is contents in there, he will delete that as well Chris gamer to the table. So I've got this table up, cause table want to get rid of it. I just got one row in there, which doesn't really matter to be fair.
And to do it just simple. First of all, you've got to create a query which equal the database connection. And we are going to drop so the drop command drop query is the one that would delete a table and drop the table and then the actual table name so call. Now we need to execute the query as usual. And now if I was to obviously reload this, it's still there. But if I reload this go back click Browse, as you can see, doesn't exist anymore.
And I forgot to to Epic database. It's not there does take no sometimes an update relative to the reload the page fully. As you can see, it has now been deleted, the users table is still intact, even though it was part of the same database. And that is it to nothing more to it than that. Or again, always be careful. Make sure you have backups in place automatic backup manual backup, beyond deleted, realize you deleted your users table.
And yeah, you lost all your data So that's it any questions, feel free to pop me a message and as usual, I look forward to seeing you in the next video.