Re: [SQL] DELETE FROM fails with error

2001-03-28 Thread Stephan Szabo
I was going to guess that it was something related to the foreign key, but I can't imagine why that would be affected by a delete on the referencing table (there shouldn't be a trigger there anyway). Can you send full schema with constraints for the tables? On Wed, 28 Mar 2001, chris Günther wr

Re: [SQL] DELETE FROM fails with error

2001-03-28 Thread Tom Lane
chris Günther <[EMAIL PROTECTED]> 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-cas

Re: [SQL] DELETE FROM fails with error

2001-03-28 Thread Josh Berkus
Chris, > I have a reference between these two tables pointing from > tblshop.ID_Country to > tblcountry.ID_Country > > 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 WH

[SQL] DELETE FROM fails with error

2001-03-28 Thread chris Günther
Hi folks, I have the problem that I can't delete datasets out of my tables. It's like that: I have a table: tblshop ID_Shop oid with sequence --- Sh_Name ID_Country ... there is an index on ID_Country I have a second table: tblcountry ID_Cou