Re: Unable to Delete a Row

From: paul(at)entropia(dot)co(dot)uk
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Unable to Delete a Row
Date: 2005-05-25 14:32:28
Message-ID: 42949A8C.8601.7117B1C@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Try:
DELETE FROM CONTACTS WHERE CONTACTID = '853';

>
> I am running Postgres v8.0.1 on Win XP Pro. When I try to delete a record, which I know exists,
> I simply get ˜DELETE 0™ as a response. Please Help!
>
> Here is a little more info:
>
> DELETE FROM CONTACTS WHERE CONTACTID = 853;
>
> Query returned successfully: 0 rows affected, 62 ms execution time.
> -- Executing query:
> Select * from contacts where contactid = 853;
>
>
> Total query runtime: 15 ms.
> Data retrieval runtime: 16 ms.
> 1 rows retrieved.
>
> -- Executing query:
> EXPLAIN ANALYSE Delete from contacts where contactid = 853;
>
>
> Total query runtime: 63 ms.
> Data retrieval runtime: 0 ms.
> 3 rows retrieved.
>
> Thanks in advance
>
> kevin crenshaw
>
>

Attachment Content-Type Size
unknown_filename text/plain 138 bytes

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Glauter Moulin Coelho 2005-05-25 14:40:37 Migration from MySQL
Previous Message Kevin Crenshaw 2005-05-25 14:27:25 Unable to Delete a Row