[mySQL] query met x < veld < y

Pagina: 1
Acties:
  • 33 views sinds 30-01-2008

  • wzzrd
  • Registratie: Februari 2000
  • Laatst online: 24-05 21:44

wzzrd

The guy with the Red Hat

Topicstarter
code:
1
select * from pietje_puk where 2001-12-08 < datum < 2001-12-20 and naam = '29' order by id limit 0, 13

Waarom werkt dit niet? Als resultaat krijg ik namelijk ook de entries die al ver voorbij 2001-12-20 liggen...
Is er een manier om dit wel te doen, het lukt mij nl. niet op dit moment!! :'(

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

datum > x and datum < y

:O

Doet iets met Cloud (MS/IBM)


  • wzzrd
  • Registratie: Februari 2000
  • Laatst online: 24-05 21:44

wzzrd

The guy with the Red Hat

Topicstarter
Op dinsdag 01 januari 2002 18:11 schreef D2k het volgende:
datum > x and datum < y

:O
AAARGH!? THAT SIMPLE!?? It was a long night ;)

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

Op dinsdag 01 januari 2002 18:20 schreef wzzrd het volgende:

[..]

AAARGH!? THAT SIMPLE!?? It was a long night ;)
volgens mij moet dat het zijn iig :)

Doet iets met Cloud (MS/IBM)


  • ACM
  • Registratie: Januari 2000
  • Niet online

ACM

Software Architect

Werkt hier

En dan nu nog naar de syntax van BETWEEN kijken:
http://www.mysql.com/doc/C/o/Comparison_Operators.html

Dit topic is gesloten.