Re: DELETE FROM fails with error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DELETE FROM fails with error
Дата
Msg-id 18364.985796275@sss.pgh.pa.us
обсуждение исходный текст
Ответ на DELETE FROM fails with error  (chris Günther <guenther@uscreen.de>)
Список pgsql-sql
chris G�nther <guenther@uscreen.de> writes:
> When I try to delete a row from tblshop I get the error that postgres
> can't find the attribute id_shop. My SQL-command looks like follows:

>     DELETE FROM tblshop WHERE tblshop."ID_Shop" = 12

That looks like the correct way of quoting a mixed-case field name.
I think the field is not named quite like you think it is.  Try doing
pg_dump -s -t tblshop databasename

to see what the field names really are.
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: Michael Fork
Дата:
Сообщение: Re: counting distinct rows on more than one column
Следующее
От: Tom Lane
Дата:
Сообщение: Re: counting distinct rows on more than one column