Re: New user questions

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: New user questions
Дата
Msg-id 5ac3e912-13e7-ced4-9925-be649c240d1b@aklaver.com
обсуждение исходный текст
Ответ на Re: New user questions  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список psycopg
On 7/14/21 10:57 AM, Adrian Klaver wrote:
> On 7/14/21 10:35 AM, Rich Shepard wrote:

> This will not work, if for no other reason that 'companies as c on 
> c.org_nbr = p.org_nbr', etc are not identifiers and it is sql.Identifier.
> 
> Also it would be simpler for this case just to create a quoted 
> statement, something like:
> """SELECT
>     fld_1, fld_2, fld_3
> FROM
>     some_table AS st
> JOIN
>     another_table AS a
> ON
>      st.id = a.a_id
> WHERE
>      st.fld_1 = 'something'
> """

That should have been:

    st.fld_1 = %s


-- 
Adrian Klaver
adrian.klaver@aklaver.com



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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: New user questions
Следующее
От: David Raymond
Дата:
Сообщение: RE: New user questions