Article View: chile.comp.programacion
Article #3021consulta sql
From: Manuel Villarroel
Date: Sat, 11 Jun 2005 00:59
Date: Sat, 11 Jun 2005 00:59
10 lines
1334 bytes
1334 bytes
Como puedo preguntar si una fecha(un campo tipo timestamp) esta entre un rango de horas en un dia? Por ejeplo, yo quiero todas las fechas tales que la hora sea menor que las 12:30 y mayor que las 14:00. Si tengo fecha1 = '2005-06-01 11:30' fecha2 = '2005-06-01 13:00' fecha3 = '2005-06-01 14:15' quiero que en la respuesta aparezca solo fecha1 y fecha3 De antemano gracias
Technical Details
Message-ID:
<d8dd1c$ftv$1@helcaraxe.dcc.uchile.cl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,847abb2bff51d953,start
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!not-for-mail
From: Manuel Villarroel <mavillarNOALSPAM@decece.uchile.cl>
Newsgroups: chile.comp.programacion
Subject: consulta sql
Date: Sat, 11 Jun 2005 00:59:24 +0000 (UTC)
Organization: DCC - Universidad de Chile
Lines: 11
Sender: Manuel Alejandro Villarroel Romero <mavillar@anakena.dcc.uchile.cl>
Message-ID: <d8dd1c$ftv$1@helcaraxe.dcc.uchile.cl>
NNTP-Posting-Host: anakena.dcc.uchile.cl
X-Trace: helcaraxe.dcc.uchile.cl 1118451564 16319 192.80.24.6 (11 Jun 2005 00:59:24 GMT)
X-Complaints-To: newsmaster@dcc.uchile.cl
NNTP-Posting-Date: Sat, 11 Jun 2005 00:59:24 +0000 (UTC)
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (Linux/2.6.10-gentoo-r6 (i686))