pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: User input to queries [RESOLVED]
Date: Wed, 9 Dec 2020 09:55:37 -0800 (PST)
Message-ID: <alpine.LNX.2.20.2012090954000.10199@salmo.appl-ecosys.com> (raw)
In-Reply-To: <60cacfc9020ff0ed37793e5eb71cf2794f97c445.camel@cybertec.at>
References: <alpine.LNX.2.20.2012090855520.10199@salmo.appl-ecosys.com>
	<60cacfc9020ff0ed37793e5eb71cf2794f97c445.camel@cybertec.at>

On Wed, 9 Dec 2020, Laurenz Albe wrote:

> You probably need the \prompt psql command:
> \prompt 'What is "p.lname"' p_lname
> \prompt 'What is "p.fname"' p_fname
> SELECT ... WHERE p.lname = :p_lname AND p.fname = :p_fname;

Laurenz,

Ah! I have not before encountered that command. Yes, this will do the job
and I'll make it a point to look at _all_ available psql commands.

Thanks very much.

Stay well,

Rich





Message-ID: <alpine.LNX.2.20.2012090954000.10199@salmo.appl-ecosys.com>
Permalink:  ../alpine.LNX.2.20.2012090954000.10199@salmo.appl-ecosys.com/
Also on:    postgresql.org/message-id/alpine.LNX.2.20.2012090954000.10199@salmo.appl-ecosys.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rshepard@appl-ecosys.com
  Subject: Re: User input to queries [RESOLVED]
  In-Reply-To: <alpine.LNX.2.20.2012090954000.10199@salmo.appl-ecosys.com>
  References: <alpine.LNX.2.20.2012090855520.10199@salmo.appl-ecosys.com> <60cacfc9020ff0ed37793e5eb71cf2794f97c445.camel@cybertec.at> <alpine.LNX.2.20.2012090954000.10199@salmo.appl-ecosys.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox