Search Postgresql Archives

Re: Substitute Variable in select query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.  

On Mon, 24 Aug 2020 at 10:15 PM, David G. Johnston <david.g.johnston@xxxxxxxxx> wrote:
On Monday, August 24, 2020, harish supare <harish.supare@xxxxxxxxx> wrote:
Hi Team,

Would like to know what the substitute/input variable available in psql.


Oracle we use &  - select a, b , c from table where a like &a;

Is there an alternative in psql?


Colon - read the documentation, psql section, for the exact syntax.

David J.


--
Best Regards
Harish.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux