| От | APseudoUtopia |
|---|---|
| Тема | Re: Internal time stamps? |
| Дата | |
| Msg-id | 27ade5280911251951l60ffd56emab181d861024e58e@mail.gmail.com обсуждение |
| Ответ на | Internal time stamps? (Aaron <niccoli00@yahoo.com>) |
| Список | pgsql-novice |
On Tue, Nov 24, 2009 at 1:26 PM, Aaron <niccoli00@yahoo.com> wrote: > Does postgresql have any kind of internal time stamps for a table entry? I > can create a field that is 'timestamp' and store it there, I was just > wondering if it was already done internally. I'd hate to duplicate > something it already does. :-) > If it does store it internally, how do you access it? > Thanks!! > Aaron To the best of my knowledge: Internal timestamps do not exist. If you want to store a timestamp of when a row was inserted, just use a TIMESTAMP type column (with- or without- time zone; WITH TIME ZONE is recommended) and insert CURRENT_TIMESTAMP or NOW or whatever function you wanna use.
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера