Search Postgresql Archives

ms-sql OUTPUT equivalent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux