Re: About using plpgsql funciton variable as the table

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: About using plpgsql funciton variable as the table
Дата
Msg-id 42FB7ABF.6040104@archonet.com
обсуждение исходный текст
Ответ на About using plpgsql funciton variable as the table name  (Ying Lu <ying_lu@cs.concordia.ca>)
Список pgsql-general
Ying Lu wrote:
> Greetings,
>
> I met a question about how to use *function variable *as the *table
> name* to select count(*) into an integer variable for the table.

Look at: FOR-IN-EXECUTE

http://www.postgresql.org/docs/8.0/static/plpgsql-control-structures.html#PLPGSQL-RECORDS-ITERATING

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Exceptions in PL/Perl?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: About using plpgsql funciton variable as the table