| От | A. Kretschmer |
|---|---|
| Тема | Re: question about default value and timestamp |
| Дата | |
| Msg-id | 20060726054226.GC14663@webserv.wug-glas.de обсуждение |
| Ответ на | question about default value and timestamp ("Christian Rengstl" <Christian.Rengstl@klinik.uni-regensburg.de>) |
| Список | pgsql-general |
am 26.07.2006, um 7:26:09 +0200 mailte Christian Rengstl folgendes: > Hi list, > > i have a table with a column where the default value is > current_timestamp, but somehow all the tuples (around 8.000.000) have > the same timestamp, which is, honestly speaking, not what i intended > to do. So is the current_timestamp function only executed when the > insert statement starts? I mean of course i can change it and insert No, but when the _Transaction_ starts. You can use timeofday() instead. HTH, Andreas -- Andreas Kretschmer (Kontakt: siehe Header) Heynitz: 035242/47215, D1: 0160/7141639 GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net === Schollglas Unternehmensgruppe ===
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера