From: | "Andrus" <eetasoft(at)online(dot)ee> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to find the number of rows deleted |
Date: | 2005-07-18 19:47:54 |
Message-ID: | dbh13b$181i$3@news.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>> Unfortunately, no result is returned if DELETE command is executed.
>> There is no SQLRowCount function in FoxPro.
>
> That's probably a feature of the language and will be so regardless of the
> database used. I expect it wraps the ODBC APIs up in a more managable
> form.
Paul,
If Microsoft SQL server I can probably the number of deleted rows using @@
variable.
So feature not getting number of rows from FoxPro is unique to Postgres in
my case.
FoxPro allows me use use odbc handle directly but I'm not sure it can help.
Is it possible to get the number of deleted rows in pg/SQL ?
How to create stored procedure which wraps delete command and returns number
of deleted rows as table column?
So I instead of delete I can use
SELECT delete_return_deleted_rows('DELETE FROM mytable WHERE mycondition');
Andrus.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Wolff III | 2005-07-18 19:54:33 | Re: index row size exceeds btree maximum, 2713 - Solutions? |
Previous Message | Andrus | 2005-07-18 19:45:27 | Re: How to create unique constraint on NULL columns |