Re: getting the current date

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: getting the current date
Дата
Msg-id 200210170201.g9H21XA02555@candle.pha.pa.us
обсуждение исходный текст
Ответ на getting the current date  (Joseph Syjuco <joseph@asti.dost.gov.ph>)
Список 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@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Joseph Syjuco
Дата:
Сообщение: getting the current date
Следующее
От: Tom Lane
Дата:
Сообщение: Re: replace null with 0 in subselect ?