Re: DELETE FROM fails with error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: chris G nther <guenther(at)uscreen(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: DELETE FROM fails with error
Date: 2001-03-28 16:17:55
Message-ID: 18364.985796275@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

chris Gnther <guenther(at)uscreen(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Mikheev, Vadim 2001-03-28 17:58:43 RE: [HACKERS] Re: possible row locking bug in 7.0.3 & 7.1
Previous Message Michael Fork 2001-03-28 16:12:42 Re: counting distinct rows on more than one column