| От | Kenneth Marshall |
|---|---|
| Тема | Re: How to get CURRENT_DATE in a pl/pgSQL function |
| Дата | |
| Msg-id | 20100519122714.GY3892@aart.is.rice.edu обсуждение исходный текст |
| Ответ на | Re: How to get CURRENT_DATE in a pl/pgSQL function (silly sad <sad@bankir.ru>) |
| Список | pgsql-sql |
On Wed, May 19, 2010 at 12:26:07PM +0400, silly sad wrote: > On 05/18/10 23:27, Kenneth Marshall wrote: > >> It works using 'now' and I assume that since curtime is > > now() is NOT the CURRENT timestamp in fact, > it is about the timestamp of the current transaction has been started. > > it is the really USEFUL value, still u have to remember this meaning. > That is a good point. My main concern was locking the value to to point when the pl/pgSQL function was called initially because of the prepare process. Any of these will work if assigned to a variable and not included directly in the SQL statement. Cheers, Ken
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера