Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)

Can anyone tell me how to delete a table in SQL?

1 Answer

0 votes
by (119k points)
edited by

We can delete the total table in SQL by using DROP statement. Here is the syntax to delete the table in SQL:

DROP TABLE TableName;

We can delete all the records from the table but not the table itself by using TRUNCATE statement. Here is the syntax to delete the data in the table in SQL but not the table itself:

TRUNCATE TABLE TableName;

If you want to learn SQL, you can go through this SQL tutorial blog by Intellipaat.

Related questions

0 votes
1 answer
asked Apr 2, 2021 in SQL by dev_sk2311 (45k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...