Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-es-ayuda by date

Next:From: Miguel Angel Hernandez MorenoDate: 2011-11-17 16:35:34
Subject: Re: ERROR Interval
Previous:From: Gilberto Castillo MartínezDate: 2011-11-17 16:33:09
Subject: Re: extraer las horas o minutos totales de uninterval

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group