[mysql] where met drie AND's

Pagina: 1
Acties:

  • BitProcessor
  • Registratie: Februari 2001
  • Laatst online: 11-09 11:52
Hey, ik wil hetvolgende doen :
code:
1
select * from testen where datum>='$tijd' and dest<='1' and groep=='2' order by datum asc

Nu heb ik het volgende probleem : 1 AND werkt perfect, maar van 2 AND's moet hij niet weten :(

Bestaat hiervoor een oplossing :?

"I think there is a world market for maybe five computers" - Thomas Watson, chairman of IBM, 1943


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

D2k

ja het werkt wel met 2 and's

kijk maar eens goed naar je statement

Doet iets met Cloud (MS/IBM)


  • BitProcessor
  • Registratie: Februari 2001
  • Laatst online: 11-09 11:52
't Is pas als ik er AND groep=='2' aan toevoeg dat hij problemen geeft...

"I think there is a world market for maybe five computers" - Thomas Watson, chairman of IBM, 1943


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

D2k

Op zaterdag 22 september 2001 15:36 schreef G8KeePeR het volgende:
't Is pas als ik er AND groep=='2' aan toevoeg dat hij problemen geeft...
dat klopt
daar zit ook de fout :+

Doet iets met Cloud (MS/IBM)


  • BitProcessor
  • Registratie: Februari 2001
  • Laatst online: 11-09 11:52
Hmmm

AND groep='2' dus |:(

Bedankt dat je me efkes liet zoeken ;)

"I think there is a world market for maybe five computers" - Thomas Watson, chairman of IBM, 1943


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

D2k

Op zaterdag 22 september 2001 15:38 schreef G8KeePeR het volgende:
Hmmm

AND groep='2' dus |:(
juistum

dat dus

tis allemaal niet zo moeilijk

Doet iets met Cloud (MS/IBM)

Pagina: 1