Search Postgresql Archives

Re: Combine Date and Time Columns to Timestamp

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

 



On 01/18/2013 04:26 PM, Rich Shepard wrote:
On Fri, 18 Jan 2013, Adrian Klaver wrote:

How are they stored, as date and time type, strings, other?

Adrian,

   ISO date and time.

A sample of the data would help also.

   Example:  2012-10-29  |  10:19   | 2012-10-30  | 09:40

test=> SELECT ('2012-10-29 '||'10:19')::timestamp;
      timestamp
---------------------
 2012-10-29 10:19:00


Rich





--
Adrian Klaver
adrian.klaver@xxxxxxxxx


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[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