select within a fucntion

From: Sinuhé Arroyo <sinuheag(at)isoco(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: select within a fucntion
Date: 2001-01-19 14:26:53
Message-ID: 3A684EAD.C6060D5A@isoco.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Patrick Welche 2001-01-19 15:09:59 Re: Re: Getting configure to notice link-time vs run-time failures
Previous Message Tatsuo Ishii 2001-01-19 14:19:17 Re: install locale.