select within a fucntion

Поиск
Список
Период
Сортировка
От Sinuhé Arroyo
Тема select within a fucntion
Дата
Msg-id 3A684EAD.C6060D5A@isoco.com
обсуждение исходный текст
Ответы Re: select within a fucntion  (Jan Wieck <janwieck@Yahoo.com>)
Список pgsql-hackers
I`mtrying to make a select which envolves two tables with in a
function....if the query is written this way: (this is just an example,
not my query)

a := (select count(*) from xx);

it works fine, but if I type the query like this

select count(*) from xx;

it throws a message that says unexpected query in exec_stmt_execsql.
If anyone knows how to fix it, it woul be great.
Thanx



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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: install locale.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: Getting configure to notice link-time vs run-time failures