Re: How to write such a query?

Поиск
Список
Период
Сортировка
От Dmitry Igrishin
Тема Re: How to write such a query?
Дата
Msg-id CAAfz9KP2oBZDBPX4BNM554AdQvHi2C_K_5135+Ex7474sqdGGA@mail.gmail.com
обсуждение исходный текст
Ответ на How to write such a query?  (Igor Korot <ikorot01@gmail.com>)
Список 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 по дате отправления: