This statement is used to DROP OBJECTS in the database. It can be a whole database or just a table, index, or view.
Note: Be careful while dropping a table. Deleting a table will result in loss of all information related to it .
Syntax :
DROP OBJECT "objectName";
object can be
DROP TABLE "tableName";
DROP DATABASE "databaseName";
This statement is used to delete table or database itself..
Parameters :
tableName : Name of the table which we wish to DROP.
databaseName : Name of the database which we wish to DROP.
Examples :
We will be using the same table which we have created using the CREATE TABLE and INSERT STATEMENT.
Using Select to see all the records before drop query runs.
SELECT * FROM `employee`;
DROP TABLE `employee`;
Above query will drop all the data related to table and its structure.
Reffering to Create database statement. We will be using same database name.
DROP DATABASE `tutorialmines`;
Above query will drop the database and all related item of it.
When it comes to children, there’s one universal truth: the right toy can spark imagination, build skills, and make memories…
In today’s digital age, where screens and gadgets dominate our children’s lives, there’s something heartwarming about a well-loved plush toy…
In a world dominated by screens and fast-paced routines, it’s easy to forget the simple magic of a toy in…
In the heart of Delhi’s vibrant streets lies a world where imagination meets innovation — the magical universe of toys.…
When was the last time a toy truly amazed you—not just as a product, but as a thoughtful tool for…
In the digital age, the way we experience childhood has changed, but the essence remains the same—imagination, exploration, and joy.…