Using rowtype as function argument

Поиск
Список
Период
Сортировка
От Martin Brommer
Тема Using rowtype as function argument
Дата
Msg-id 5.1.0.14.2.20030806111628.00ba12f0@192.168.0.1
обсуждение исходный текст
Ответ на Which cursor-related warnings should be errors?  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Using rowtype as function argument
Список pgsql-sql
Hi all,

I suppose this must be easy to figure out, but I can't find it anywhere in 
the documentation.

How do I call a function that takes a rowtype for an argument as in:

CREATE FUNCTION myfunc(mytablename) RETURNS INT AS '
BEGIN-- Do stuffRETURN val;
END;
' LANGUAGE 'plpgsql'

How do I call this function? I haven't been able to figure it out or find 
it anywhere...

Thanks in advance,


Martin



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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: length of recordset read through a cursor
Следующее
От: Jodi Kanter
Дата:
Сообщение: looking for empty fields