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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Function with now() | time 'now' | etc...
Дата
Msg-id 19211.985807322@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Function with now() | time 'now' | etc...  (edipoelder@ig.com.br)
Ответы Re: Function with now() | time 'now' | etc...  (Cedar Cox <cedarc@visionforisrael.com>)
Список 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
        regards, tom lane


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

Предыдущее
От: edipoelder@ig.com.br
Дата:
Сообщение: Function with now() | time 'now' | etc...
Следующее
От: Dirk Lutzebaeck
Дата:
Сообщение: Re: counting distinct rows on more than one column