ERROR Interval

From: ruben avila galindo <ruben2218(at)gmail(dot)com>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: ERROR Interval
Date: 2011-11-17 16:33:58
Message-ID: CAKavrFo_q3r+UOPuLHMjAJNLH2XDZtiErgohoefyzdxghe4F_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Hola cuando quiero hacer este proceso me arroja este error :

ERROR: invalid input syntax for type interval: "2011-11-16 11:15:00"

LINE 1: select '2011-11-16 11:15:00' + INTERVAL '15 minute'

^

select * from tabla where fecha >='2011-11-16 14:00:00' and fecha
<='2011-11-16 14:00:00'+ Interval '15 minute'

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Miguel Angel Hernandez Moreno 2011-11-17 16:35:34 Re: ERROR Interval
Previous Message Gilberto Castillo Martínez 2011-11-17 16:33:09 Re: extraer las horas o minutos totales de un interval