Try after your operation:
GET DIAGNOSTICS my_rows = ROW_COUNT;
----- Original Message -----
From: "Rudi Starcevic" <rudi@oasis.net.au>
To: <pgsql-sql@postgresql.org>
Sent: Thursday, June 20, 2002 6:01 AM
Subject: [SQL] Rows affected
> Hello friends,
>
> We're using Postgresql with PHP, Perl and ColdFusion for web development.
> With PHP and Perl we have functions to find out the number of rows
> affected by an insert /update/ delete.
> I'm wondering if anyone has experience getting the affected row count
> with ColdFusion.
> For example in PHP we have the pg_cmdtuples function.
> Perhaps there's and sql or built in Pg function I can call from a
> query/sql statement.
>
> Your advice is greatly appreciated.
> Thanks
> Best regards
> Rudi Starcevic.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly