Re: rowcount function in postgres??? - Mailing list pgsql-sql

From Rodrigo De León
Subject Re: rowcount function in postgres???
Date
Msg-id a55915760704071054u2cdcb6e8l90a18faee47b973c@mail.gmail.com
Whole thread Raw
In response to rowcount function in postgres???  (Karthikeyan Sundaram <skarthi98@hotmail.com>)
List pgsql-sql
On 4/7/07, Karthikeyan Sundaram <skarthi98@hotmail.com> wrote:
>
>  Hi,
>
>     I am using 8.1.0 postgres and trying to write a plpgsql block.  In that
> I am inserting a row.  I want to check to see if the row has been inserted
> or not.
>
>    In oracle we can say like this
>
>     begin
>       insert into table_a values (1);
>       if sql%rowcount > 0
>       then
>         dbms.output.put_line('rows inserted');
>       else
>         dbms.output.put_line('rows not inserted');
>      end if;
>  end;
>
>  Is there something equal to sql%rowcount in postgres?   Please help.
>
>  Regards
>  skarthi

Maybe:

http://www.postgresql.org/docs/8.2/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-SQL-ONEROW

pgsql-sql by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: rowcount function in postgres???
Next
From: "Dirk Jagdmann"
Date:
Subject: MD5 sums of large objects