Re: System Date

Поиск
Список
Период
Сортировка
От Negandhi, Nishith
Тема Re: System Date
Дата
Msg-id FE0C41EEBEF01C47BF3A91F60669446804973251@PUNISHER.intra.infousa.com
обсуждение исходный текст
Ответ на System Date  ("Negandhi, Nishith" <Nishith.Negandhi@infoUSA.com>)
Ответы Re: System Date
Re: System Date
Список pgsql-admin
Hi Thanx..one more help.
I am creating a function that will retuen the current systemdate.
 
CREATE FUNCTION "CreateDate"() RETURNS date AS
'select now();'
LANGUAGE 'plpgsql';
 
However, I get the error:
 
ERROR:  syntax error at or near "select" at character 51
 
Any suggestions .??
 
Thanks in advance
 


From: Benjamin Krajmalnik [mailto:kraj@illumen.com]
Sent: Thursday, January 18, 2007 5:31 PM
To: Negandhi, Nishith; pgsql-admin@postgresql.org
Subject: RE: [ADMIN] System Date

select CURRENT_TIMESTAMP
 
or
 
select LOCALTIMESTAMP
 
the first has the information with the timezone offset at the end, whereas the second does not.


From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Negandhi, Nishith
Sent: Thursday, January 18, 2007 3:43 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] System Date

Hi,
How to check the system date using PG/SQL ??

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

Предыдущее
От: "Benjamin Krajmalnik"
Дата:
Сообщение: Re: System Date
Следующее
От: "Chad Wagner"
Дата:
Сообщение: Re: System Date