Re: Cannot drop column

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Cannot drop column
Date: 2024-12-18 18:49:56
Message-ID: CAKFQuwaBO3fA0cKLHGEEVZQHV_-NVMG8S5NYQKxcPy+qFSj5ZQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Dec 18, 2024 at 11:47 AM Rich Shepard <rshepard(at)appl-ecosys(dot)com>
wrote:

> I'm not seeing why postgres won't drop a table's column:
>
> bustrac=# select * from statustypes order by stat_name;
> stat_name
> --------------------
> Client
> Lead
> No further contact
> Opportunity
> Proposal submitted
> Prospect
> Qualified
> Referral
> Suspect
> (9 rows)
>
> bustrac=# alter table statustypes drop column Suspect;
> ERROR: column "suspect" of relation "statustypes" does not exist
> bustrac=#
>
> What have I done incorrectly?
>

Failed to double-quote your column name.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2024-12-18 18:50:58 Re: Cannot drop column
Previous Message Rich Shepard 2024-12-18 18:47:13 Cannot drop column