🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to PostgreSQL Notes
Topic #14

PostgreSQL DROP TABLE


The DROP TABLE Statement

The DROP TABLE statement is used to drop an existing table in a database.

Note: Be careful before dropping a table. Deleting a table will result in loss of all information stored in the table!

The following SQL statement drops the existing table cars:

Example

DROP TABLE cars;

Result

DROP TABLE

Display Table

To check the result we can display the table with this SQL statement:

Example

SELECT * FROM cars;

Which will result in an error, because the cars table no longer exists:

Result

ERROR: relation "cars" does not exist
LINE 1: SELECT * FROM cars;

^

Want to go beyond the notes?

Join CodingNow 2.0's PostgreSQL course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

PostgreSQL DROP TABLE – FAQs

Quick answers about learning PostgreSQL DROP TABLE in PostgreSQL.

This free note from CodingNow 2.0 explains PostgreSQL DROP TABLE in PostgreSQL — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every PostgreSQL topic on CodingNow 2.0, including PostgreSQL DROP TABLE, is 100% free with no signup required.
With focused practice, most students grasp PostgreSQL DROP TABLE in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now