How to make @id or $id as parameter name in plpgsql, is it available?

Поиск
Список
Период
Сортировка
От Arnold.Zhu
Тема How to make @id or $id as parameter name in plpgsql, is it available?
Дата
Msg-id 20041123035703.3EFDBE8F@shaucon.com
обсуждение исходный текст
Ответы Re: How to make @id or $id as parameter name in plpgsql, is it available?  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-hackers
Hello, pgsql-hackers

Can I change postgresql's source to make the following plpgsql works ?
If could, would you please tell me where can i change the source?
I want to try it.

-------------------------------------------------------
CREATE FUNCTION users_select_by_id(@id int4)
RETURNS SETOF users_set
AS '

declare rec record;

begin
for rec in    select * from users where id = @idloop    return next rec;end loop;return;

end; 'LANGUAGE plpgsql;
-------------------------------------------------------


Thanks & Regards

Arnold.Zhu
2000-11-23






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

Предыдущее
От: Kenneth Marshall
Дата:
Сообщение: Re: [Testperf-general] Re: ExclusiveLock
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Plperl Safe version check fails for Safe 2.09