Re: Function with now() | time 'now' | etc...

Поиск
Список
Период
Сортировка
От Cedar Cox
Тема Re: Function with now() | time 'now' | etc...
Дата
Msg-id Pine.LNX.4.21.0103291337250.19150-100000@nanu.visionforisrael.com
обсуждение исходный текст
Ответ на Re: Function with now() | time 'now' | etc...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
> edipoelder@ig.com.br writes:
> >     It doesn't getting different times on each execution. I also tried put 
> > "timestamp 'now'" insted "now()". What am I doing wrong? 
> 
> now() is defined to return the time of the start of the current
> transaction.  It won't change value inside a transaction.  See
> http://www.postgresql.org/devel-corner/docs/postgres/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT

What about CURRENT_TIMESTAMP?  (This is standard SQL isn't it?)



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

Предыдущее
От: Cedar Cox
Дата:
Сообщение: Re: SELECT ... FOR UPDATE
Следующее
От: "Richard Huxton"
Дата:
Сообщение: Re: Escaping \