Re: Substitute Variable in select query

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: harish supare <harish(dot)supare(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Substitute Variable in select query
Date: 2020-08-24 14:43:06
Message-ID: CAKFQuwaZg3StdtQApNL5kFbsmiZ9GMjZOYnQFRDvtaz59xB3dA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Aug 24, 2020 at 7:21 AM harish supare <harish(dot)supare(at)gmail(dot)com>
wrote:

> thanks for the reply David.
>
> In case of Colon I need to set the variable first, my requirement is my
> select query should prompt for the input.
>
>
Please don't top-post.

psql does not have a feature that will prompt users during the execution of
a query. It does, as documented, have a "\prompt" meta-command though.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message iulian dragos 2020-08-24 15:00:15 Re: Query plan prefers hash join when nested loop is much faster
Previous Message Diego 2020-08-24 14:25:41 Re: Getting away from Oracle APEX, recommendations for PostgreSQL?