ms-sql OUTPUT equivalent

From: Clark Allan <clarka(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: ms-sql OUTPUT equivalent
Date: 2005-07-06 20:45:30
Message-ID: 4a7a73210507061345284cba70@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there an equivelent to the OUTPUT parameter in MS-SQL?
here is an example:
----------------------------------------
CREATE PROCEDURE GetPagedList
(
@CurrentPage tinyint,
@PageSize tinyint,
@TotalRecords int OUTPUT,
)
AS
Set NoCount On
-- ...some code here...

-- Return the total number of records available as an output parameter
Select @TotalRecords = Count(*) From tblemp

GO
---------------------------------------
I am using the Npgsql data provider in a .net app, and have noticed you can
set the Parameter direction to be output
eg "NpgsqlParameter.Direction = ParameterDirection.Output"
Is this just a case of npgsql getting ahead of pg?

Thanks
Clark

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ying Lu 2005-07-06 20:52:07 About unsigned smallint?
Previous Message Stephen Frost 2005-07-06 20:27:44 Re: current_user inside SECURITY DEFINER function?