- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is MySQL DROP command used for?
As the name explains, it is used to completely remove the table from the database.
Syntax
Drop table table_name;
Example
mysql> Drop table Student; Query OK, 0 rows affected (0.09 sec)
The query above completely removes the ‘Student’ table from the database. We can observe as MySQL returns an error message after running the following query −
mysql> Select * from Student; ERROR 1146 (42S02): Table 'query.student' doesn't exist
Advertisements
To Continue Learning Please Login
Login with Google