ERROR: query has no destination for result data

From: Peter Kroon <plakroon(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: ERROR: query has no destination for result data
Date: 2012-11-23 10:36:59
Message-ID: CAOh+DO=pdHaE2H6mmQcJ6F-r4vLFCsywsGweQO+B-LE7ZZUDsA@mail.gmail.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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bartosz Dmytrak 2012-11-23 10:41:51 Re: ERROR: query has no destination for result data
Previous Message Peter Kroon 2012-11-23 10:09:36 Re: create table in memory