Re: Cannot drop column
От | Adrian Klaver |
---|---|
Тема | Re: Cannot drop column |
Дата | |
Msg-id | 5060eb8f-2618-4cfb-8714-11907b440193@aklaver.com обсуждение исходный текст |
Ответ на | Re: Cannot drop column (Rich Shepard <rshepard@appl-ecosys.com>) |
Список | pgsql-general |
On 12/18/24 11:04 AM, Rich Shepard wrote: > On Wed, 18 Dec 2024, Viral Shah wrote: > >> Since your column name has an Upper case character, you will have to use >> double quotes to drop it. Try alter table statustypes drop column >> "Suspect"; > > Viral, > > Huh! I've not before encountered this in the 30+ years I've used postgres. It has been that way for a long time: https://www.postgresql.org/docs/7.0/syntax525.htm Your issue though is as Ron pointed out: alter table statustypes drop column Suspect That is trying to drop a column named "Suspect" when in fact the column name is stat_name. 'Suspect' is a value in the column. > > Thanks for the lesson. > > Regards, > > Rich > > -- Adrian Klaver adrian.klaver@aklaver.com
В списке pgsql-general по дате отправления: