Re: How to write such a query? - Mailing list pgsql-general

From Dmitry Igrishin
Subject Re: How to write such a query?
Date
Msg-id CAAfz9KP2oBZDBPX4BNM554AdQvHi2C_K_5135+Ex7474sqdGGA@mail.gmail.com
Whole thread Raw
In response to How to write such a query?  (Igor Korot <ikorot01@gmail.com>)
List pgsql-general


On Thu, Jan 6, 2022, 09:40 Igor Korot <ikorot01@gmail.com> wrote:
Hi, ALL,
In SQLite you can write:

SELECT a, b, c FROM foo WHERE id = :id;

where ":id" is the named parameter.

The query above is similar to

SELECT a,b,c FROM foo WHERE id = ?;

except that the parameter has a name.

Is there a way to write such a SELECT statement with the
named parameter in PostgreSQL?
Named parameters of prepared statements are implemented in my C++ library Pgfe.

pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: How to write such a query?
Next
From: Michael Paquier
Date:
Subject: Re: md5 issues Postgres14 on OL7