On Wed, Mar 09, 2005 at 10:58:05 +0200, Fatih Cerit <[EMAIL PROTECTED]> wrote: > Dear all > > Is there anyone at there who knows howto use dateadd in pgsql. I have a > problem in my function that is like this ; > > Select into futuredate now() + interval '30 days'; <- this is ok > but how can I use a variable intead of '30 days' :(
A better solution may to be to use the date type instead of the timestamp type. Then you can just add an integer number to the date. You also don't have to worry about daylight savings time changes. ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])