From: | <kaiq(at)realtyideas(dot)com> |
---|---|
To: | "Alexey V(dot) Meledin" <avm(at)webclub(dot)ru> |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] Postgres Date/Time Special Constants |
Date: | 1999-12-05 01:49:19 |
Message-ID: | Pine.LNX.4.10.9912041946500.1334-100000@picasso.realtyideas.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
since they are "special", not "global", you need to use ''
and ::datetime
so, try:
select 'now'::datetime;
select 'infinity'::datetime + '1day'::timespan;
select 'current'::datetime + 1;
On Sat, 4 Dec 1999, Alexey V. Meledin wrote:
> Hi!
>
> Where can I see SUBJ?
> I try:
> select current - nothing
> select infinity - nothing
> epoch, now, today and etc.
>
> Works:
> select current_timestamp,
> current_date,
> current_time,
> now()
>
> Are special constants are not implemented yet?
>
> Regards, Alexey V. Meledin
> InterForge Developers Group, Saint-Petersburg
> look_to: <www.etcompany.ru><www.businessweb.ru>
> <www.inplan.spb.ru><www.pia.ru>>>>>>>>>>>>>>>>>
> mail_to: <avm(at)webclub(dot)ru><nick_as: <cureman>>>>
>
>
>
> ************
>
From | Date | Subject | |
---|---|---|---|
Next Message | tjk@tksoft.com | 1999-12-05 03:49:29 | group by |
Previous Message | Alexey V. Meledin | 1999-12-04 20:25:41 | Postgres Date/Time Special Constants |