Re: Please help on MS SQL Procedure (@@rowcount) translate

From: Joe Conway <mail(at)joeconway(dot)com>
To: annachau <annachau(at)hongkong(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Please help on MS SQL Procedure (@@rowcount) translate
Date: 2002-12-03 04:00:45
Message-ID: 3DEC2C6D.5000805@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

annachau wrote:
> I have some MS SQL Store Procedure code as following:
>

[...snip...]

>
> 1. How can I get @@rowcount in postgresql or have any other method to check?
> 2. Can goto statement use in postgresql?

See:
http://developer.postgresql.org/docs/postgres/plpgsql.html

and in particular, look at the bottom of this page for the answer to #1:
http://developer.postgresql.org/docs/postgres/plpgsql-statements.html

and for alternatives for #2 see:
http://developer.postgresql.org/docs/postgres/plpgsql-control-structures.html
and
http://developer.postgresql.org/docs/postgres/plpgsql-errors-and-messages.html

HTH,

Joe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-12-03 05:01:06 Re: 7.4 Wishlist
Previous Message Timothy Grant 2002-12-03 03:52:21 Re: \d <Table> functionality in a query.