| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Joseph Syjuco <joseph(at)asti(dot)dost(dot)gov(dot)ph> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: getting the current date |
| Date: | 2002-10-17 02:01:32 |
| Message-ID: | 200210170201.g9H21XA02555@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Joseph Syjuco wrote:
>
> how can i get the current date (without the time part) in sql. I tried
> doing a select now() but it also gives me the time part
test=> SELECT CURRENT_DATE;
date
------------
2002-10-17
(1 row)
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2002-10-17 03:10:17 | Re: replace null with 0 in subselect ? |
| Previous Message | Charles H. Woloszynski | 2002-10-17 01:09:11 | Re: Slow performance on MAX(primary_key) |