Re: [GENERAL] Plpgsql - Custom fields Postgres 9.5

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [GENERAL] Plpgsql - Custom fields Postgres 9.5
Дата
Msg-id CAKFQuwb5664o3CpEtUo9Tn-cQCuH07kFm6VpyACmmjxC+_pOiQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Plpgsql - Custom fields Postgres 9.5  (Patrick B <patrickbakerbr@gmail.com>)
Список pgsql-general
On Wednesday, December 14, 2016, Patrick B <patrickbakerbr@gmail.com> wrote:

         ' || date_start || '
      AND
          ' || date_end || '
  Results in this
      BETWEEN
        2016-12-15
      AND
          20160901
Compared to this 

         '2016-12-15'

      AND

          '20160901'


Your query has single quotes surrounding the values in the between.  In the the error output they don't.  You need to modify the dynamic SQL so that they do.

David J.

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: [GENERAL] Plpgsql - Custom fields Postgres 9.5
Следующее
От: Lucas Possamai
Дата:
Сообщение: Re: [GENERAL] Plpgsql - Custom fields Postgres 9.5