Re: [GENERAL] Coditional join of query using PostgreSQL

Поиск
Список
Период
Сортировка
От Nick Dro
Тема Re: [GENERAL] Coditional join of query using PostgreSQL
Дата
Msg-id ~0025919EAE23248FB006905@walla.co.il
обсуждение исходный текст
Ответ на [GENERAL] Coditional join of query using PostgreSQL  (Nick Dro <postgresql@walla.co.il>)
Список pgsql-general
This is a join in a middle of query.


How can I use dynamic SQL in the middle of query?

ב מאי 15, 2017 20:26, David G. Johnston כתב:
On Mon, May 15, 2017 at 10:02 AM, Nick Dro <postgresql@walla.co.il> wrote:
Hi,
I'm new to postgresql and couldn't find answer to this situation anywhere.
I asked this here:
http://stackoverflow.com/questions/43984208/coditional-join-of-query-using-postgresql

I hope there is a better solution rather than creating two separated functions :(

​Generate the SQL itself in a string then execute the string.  Its called "Dynamic SQL"​.


David J.



В списке pgsql-general по дате отправления:

Предыдущее
От: Jack
Дата:
Сообщение: Re: [GENERAL] Coditional join of query using PostgreSQL
Следующее
От: Dmitry Dolgov
Дата:
Сообщение: Re: [GENERAL] Insert performance and disk usage in JSON vs JSONB