Combine Date and Time Columns to Timestamp

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Combine Date and Time Columns to Timestamp
Дата
Msg-id alpine.LNX.2.00.1301181525300.16366@salmo.appl-ecosys.com
обсуждение исходный текст
Ответы Re: Combine Date and Time Columns to Timestamp  (Adrian Klaver <adrian.klaver@gmail.com>)
Список pgsql-general
   My Web searching foo fails me, and I don't see the answer in the postgres
docs so I hope someone here can point me in the proper direction.

   There is a table for bacteriological data that contains two columns for
the date and time the water was collected and another two columns for the
date and time the plates were read (since the latter should be less than 24
hours after the former). It would be simpler to combine each date-time pair
into a single timestamptz column. Seems to me that this can be done with
SQL within psql, but just how is not obvious to me because I've not worked
with timestamp values before.

   What is the most parsimonious way to combine the two columns into one?

TIA,

Rich



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

Предыдущее
От: Vraj Mohan
Дата:
Сообщение: Re: Sample databases
Следующее
От: Asia
Дата:
Сообщение: Re: Libpq and multithreading