Search Postgresql Archives

Re: Plpgsql - Custom fields Postgres 9.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, December 14, 2016, Patrick B <patrickbakerbr@xxxxxxxxx> 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.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux