ms-sql OUTPUT equivalent

Поиск
Список
Период
Сортировка
От Clark Allan
Тема ms-sql OUTPUT equivalent
Дата
Msg-id 4a7a73210507061345284cba70@mail.gmail.com
обсуждение исходный текст
Ответы Re: ms-sql OUTPUT equivalent  (Douglas McNaught <doug@mcnaught.org>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: current_user inside SECURITY DEFINER function?
Следующее
От: Ying Lu
Дата:
Сообщение: About unsigned smallint?