Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hY8k5-0003h4-M9 for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 12:40:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hY8k4-00046q-Ih for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 12:40:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hY8k4-00042O-5X for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 12:40:40 +0000 Received: from box.beccati.com ([176.9.123.236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hY8jv-0000VD-Os for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 12:40:39 +0000 Received: from authenticated-user (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by box.beccati.com (Postfix) with ESMTPSA id 60123200312; Tue, 4 Jun 2019 14:40:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1559652030; bh=l22TgspEDWXm05hxs9/0Z8vev5kfEoCzZULlkaYASjo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=CdWZCMx1XCW8x3xRttX8i+erOJomHeLoQRSs1fFJ+FthCEephh2QQxz1XuU7wSKSb Un3CToxdNwIcgGMCiakY3HEP/W5oFDDmO1grs6WiWATnqpyHttsNaFly4V3B376bcU rXeoH+IqYJ+1aFIylVVDZOue7uGG2QtO20PJwH8a7c7+E2S5L7leXkOTg2plagdXhl /4lIF/2EtJVUQQdTsZs/0lXS24xAbSYhRDIio9bmpzOzowqtKc/fcQ6fnefGSu839c vUnTd5lU1J3bfQEv7BSYPRWeuINwu7LgYalfvQuUkTTeZfLG52FCZLhZMaiisQtoys ZzCQh9Fr6A8rg== Subject: Re: Research on ?? operators To: Michael Lewis Cc: Steve Atkins , PG mailing List References: <4b588eb1-a3af-3e25-c1f1-16fb93e602e3@beccati.com> <9e74ec66-8fbf-a2b1-dbde-c6808ded6a94@beccati.com> From: Matteo Beccati Message-ID: <28cba2bf-c90b-33c2-6bd7-ff099d981aaf@beccati.com> Date: Tue, 4 Jun 2019 14:40:25 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Michael, On 04/06/2019 14:35, Michael Lewis wrote: > /":foo" named placeholders/ > > If I may, is this supported natively in Postgres prepared statements? > Can I see an example? I do not care much for the numbers of positional > placeholders and would love to use names instead if possible. Not natively. In this case it's the PHP PDO pgsql driver that performs the translation. I suppose many other DB libraries do that in any programming language. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/