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

PostgreSQL DROP COLUMN


The ALTER TABLE Statement

To remove a column from a table, we have to use the ALTER TABLE statement.

The ALTER TABLE statement is used to add, delete, or modify columns in an existing table.

The ALTER TABLE statement is also used to add and drop various constraints on an existing table.


DROP COLUMN

We want to remove the column named color from the cars table.

To remove a column, use the DROP COLUMN statement:

Example

ALTER TABLE cars
DROP COLUMN color;

Result

ALTER TABLE

Display Table

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

Example

SELECT * FROM cars;

As you can see in the result, the color column has been removed from the cars table.

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 COLUMN – FAQs

Quick answers about learning PostgreSQL DROP COLUMN in PostgreSQL.

This free note from CodingNow 2.0 explains PostgreSQL DROP COLUMN 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 COLUMN, is 100% free with no signup required.
With focused practice, most students grasp PostgreSQL DROP COLUMN 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