Re: Dynamic procedure execution - Mailing list pgsql-general

From David G. Johnston
Subject Re: Dynamic procedure execution
Date
Msg-id CAKFQuwbVZHqZUFzA8i+M=vDcQ4_Wd0+L77r1LTH6GU7xB-X10g@mail.gmail.com
Whole thread Raw
In response to Dynamic procedure execution  ("Muthukumar.GK" <muthankumar@gmail.com>)
Responses Re: Dynamic procedure execution  ("Muthukumar.GK" <muthankumar@gmail.com>)
List pgsql-general
On Sunday, December 13, 2020, Muthukumar.GK <muthankumar@gmail.com> wrote:

v_query := ' OPEN C1 FOR SELECT * FROM public."Bankdetails"';

 

EXECUTE (v_query);



You put the pl/pgsql OPEN command into a string and sent it to the SQL engine via EXECUTE and the SQL engine is complaining that it has no idea what you want it to do.

David J.

pgsql-general by date:

Previous
From: "Muthukumar.GK"
Date:
Subject: Dynamic procedure execution
Next
From: "Muthukumar.GK"
Date:
Subject: Re: Dynamic procedure execution