Re: can function arguments have the type tablename.columnname%TYPE?

Поиск
Список
Период
Сортировка
От Sergey Konoplev
Тема Re: can function arguments have the type tablename.columnname%TYPE?
Дата
Msg-id AANLkTilLMdFsp5KlX66RGjM5K4u9hC6QVqF_qgWXzjqS@mail.gmail.com
обсуждение исходный текст
Ответ на can function arguments have the type tablename.columnname%TYPE?  (Dino Vliet <dino_vliet@yahoo.com>)
Список pgsql-general
Hi,

What is the main goal? Aren't you looking for a solution to simplify
arguments declaration?

If so then what about using this one:

CREATE OR REPLACE FUNCTION totnrchange(t table1)
RETURNS integer AS
$BODY$
DECLARE
  tot integer;
BEGIN
  select count(resnr) into tot from table1
  where resnr = t.resnr and fnr = t.fnr ...
...













--
Sergey Konoplev

Blog: http://gray-hemp.blogspot.com /
Linkedin: http://ru.linkedin.com/in/grayhemp /
JID/GTalk: gray.ru@gmail.com / Skype: gray-hemp / ICQ: 29353802

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

Предыдущее
От: Luis Guillermo Dangel
Дата:
Сообщение: Question about Beta for Windows 64 bits
Следующее
От: David Fetter
Дата:
Сообщение: Re: Pulling data from a constraint def