[(My)SQL] Alle records van bepaalde tabellen doorzoeken

Pagina: 1
Acties:

  • paultjeb
  • Registratie: Augustus 2001
  • Niet online

paultjeb

Man, wat 'n boudel!

Topicstarter
Hoe kan ik alle velden van bepaalde tabellen uit een (MySQL)database doorzoelen op een waarde?
Oftewel:
SELECT *
FROM tabellen
WHERE * = blah

  • Defspace
  • Registratie: Mei 2000
  • Laatst online: 27-08 11:17

Defspace

Administrator

WHERE LIKE %bla%

  • paultjeb
  • Registratie: Augustus 2001
  • Niet online

paultjeb

Man, wat 'n boudel!

Topicstarter
Nee, dat werkt niet. Ik krijg:
You have an error in your SQL syntax near 'like %blah% LIMIT 0, 30' at line 2

  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 28-08 12:00

Janoz

Moderator Devschuur®

!litemod

nee, dat kan niet. Je zult ze allemaal stuk voor stuk moeten benoemen:

select a, b, c, d from table where a=blah or b=blah or c=blah or d=blah

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


  • paultjeb
  • Registratie: Augustus 2001
  • Niet online

paultjeb

Man, wat 'n boudel!

Topicstarter
Jammer, ik was er al bang voor......