Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kn3gm-0000rP-7F for pgsql-general@arkaria.postgresql.org; Wed, 09 Dec 2020 17:55:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kn3gl-0001EY-1u for pgsql-general@arkaria.postgresql.org; Wed, 09 Dec 2020 17:55:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kn3gk-0001ER-Qt for pgsql-general@lists.postgresql.org; Wed, 09 Dec 2020 17:55:42 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kn3gi-0001sH-Mr for pgsql-general@lists.postgresql.org; Wed, 09 Dec 2020 17:55:42 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 9001A262A72 for ; Wed, 9 Dec 2020 09:55:37 -0800 (PST) Date: Wed, 9 Dec 2020 09:55:37 -0800 (PST) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: User input to queries [RESOLVED] In-Reply-To: <60cacfc9020ff0ed37793e5eb71cf2794f97c445.camel@cybertec.at> Message-ID: References: <60cacfc9020ff0ed37793e5eb71cf2794f97c445.camel@cybertec.at> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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