Timestamps

Поиск
Список
Период
Сортировка
От Slavisa Garic
Тема Timestamps
Дата
Msg-id Pine.GSO.4.10.10402091729010.29934-100000@bruce.csse.monash.edu.au
обсуждение исходный текст
Ответ на Re: Transaction aborts on syntax error.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Timestamps  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Hi all,

I am not sure if this should be sent to this mailing list. If i am wrong
could someone please direct me to the correct one so I can subscribe
there.

I wanted to ask a simple question. Say I have a table with the timestamp
field. What is the best way to say get all the records that were created
say 2 hours before the query. One of the options would be to generate the
timestamp in the correct format and then send a query in the format 
SELECT * from <table> where create_time < <generated_timestamp>

Is there a better way than this?

Any help would be greatly appreciated,
Regards,
Slavisa




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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: session persistent data for plperl
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psql variables