Re: query

Поиск
Список
Период
Сортировка
От Terry Fielder
Тема Re: query
Дата
Msg-id 42396D61.6070002@ashtonwoodshomes.com
обсуждение
Ответ на query  ("Chandan_Kumaraiah" <Chandan_Kumaraiah@satyam.com>)
Ответы Re: query
Список pgsql-sql
now() returns a timestamp.

Cast it to a date and then you can subtract days. e.g.

select now()::date -1

Terry

Chandan_Kumaraiah wrote:

 

Hi,

 

In oracle we write sysdate-1

For example,we write a query (select * from table1 where created_date>=sysdate-1).Whats its equivalent in postgre?

 

Chandan

 


-- 
Terry Fielder
terry@greatgulfhomes.com
Associate Director Software Development and Deployment
Great Gulf Homes / Ashton Woods Homes
Fax: (416) 441-9085

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