From: apratim sharma <hiapra(at)yahoo(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject:
Date: 2003-04-13 06:19:47
Message-ID: 20030413061947.62436.qmail@web21110.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

hi, Can anybody tell how to add an integer to a date inside postgres query. i'm using postgres 7.3 when i give select cast(now() as date) it gives the current date, now i want to select a date say after 10 days. i'm giving select cast(now() as date) +10 ; it gives error can't typecast date to int what to do??? please help me Apratim

---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more

Responses

  • Re: at 2003-04-13 11:01:27 from Jordan S. Jones
  • Re: at 2003-04-13 15:30:15 from Tom Lane

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jordan S. Jones 2003-04-13 11:01:27 Re:
Previous Message Barry Lind 2003-04-13 04:13:10 Re: patch for cursor based querys in JDBC