[Pgsql-ayuda] +/- date

sandrigo lezcano psql@msa.com.py
Wed, 11 Jun 2003 18:15:01 +0100


en Sybase hago esto:

     set @fecha=dateadd(month,-5,@fecha);

q quiere decir
   "restarle 5 meses a la variable fecha"
y atribuirle ese valor a la misma variable

ejemplo: ------

The following statement returns the value: 1995-11-02 00:00:00.000.
SELECT dateadd( month, 102, '1987/05/02' )
como puedo hacerlo en PostgreSQL ??????



GRACIAS..

______________ ICQ 143590717 _________________
Sandrigo Lezcano Jara       Asunción, Paraguay
usando...:   Ret Hat 7.2 (Enigma)
             Kernel 2.4.7-10
             PostgreSQL 7.3.3
migrando.:   Sybase 6.5 al PostgreSQL
front_end:   PowerBuilder 6.5
_____________________________________________
  Yahoo messenger  ID:  alkafes@yahoo.com
Hotmail messenger  ID:  sandrigolezcano@hotmail.com
==========================================