| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> | 
|---|---|
| To: | MIGUEL CANCHAS <mcanchas(at)tsr(dot)com(dot)pe> | 
| Cc: | "'pgsql-es-ayuda(at)postgresql(dot)org'" <pgsql-es-ayuda(at)postgresql(dot)org> | 
| Subject: | Re: Sobre uso del BETWEEN | 
| Date: | 2008-02-01 20:11:40 | 
| Message-ID: | 20080201201140.GT5172@alvh.no-ip.org | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-es-ayuda | 
MIGUEL CANCHAS escribió:
> Viendo esto, cual es entonces mas rapido :
> 
> Ejemplo 1
>  select * from produccion
>  where fecha_fabricacion between '2005-06-21' and '2006-01-01';
> 
> Ejemplo 2
>  select * from produccion
>  where fecha_fabricacion >= '2005-06-21' and fecha_fabricacion <=
> '2006-01-01';
Son identicos, porque el parser convierte el BETWEEN al segundo ejemplo.
-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2008-02-01 20:14:57 | Re: Cacenlar un insert | 
| Previous Message | Reynier Perez Mira | 2008-02-01 19:31:50 | Herramienta CASE |