ERROR: query has no destination for result data

From: rahul143 <rk204885(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: ERROR: query has no destination for result data
Date: 2012-12-02 15:04:56
Message-ID: 1354460696189-5734594.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I wish to return the SELECT statement.
Ho can I achieve this?

DO $$

DECLARE v_some_id int=14;

BEGIN
/*
more queries here...
*/
SELECT 'this is text';
END
$$ LANGUAGE plpgsql;

Best,
Peter Kroon

-----

--
View this message in context: http://postgresql.1045698.n5.nabble.com/ERROR-query-has-no-destination-for-result-data-tp5734594.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

Browse pgsql-general by date

  From Date Subject
Next Message rahul143 2012-12-02 15:06:58 Regarding the shared disk fail over cluster configuration
Previous Message Guillaume Lelarge 2012-12-02 13:45:24 Re: alter sequence