Forums

This topic is locked

Search Query

Posted 21 Mar 2003 13:21:45
1
has voted
21 Mar 2003 13:21:45 Simon Kemp posted:
Probably me being thick but...

This is from a search results recordset - it works fine for the "code" and first model parts but the isModel bit is acting like = not LIKE ie if there is a field called "one two three" a search for "one" gives no results but a search in the same field for "one two three" gives the expected result

Help?

SELECT *
FROM InkStock
WHERE model LIKE '%MMColParam%' OR model LIKE 'isModel' OR code LIKE 'isCode'

Replies

Replied 21 Mar 2003 17:55:09
21 Mar 2003 17:55:09 Brent Colflesh replied:
Dear Husky,

SELECT *
FROM InkStock
WHERE model LIKE '%MMColParam%' OR model LIKE '%isModel%' OR code LIKE '%isCode%'

Regards,
Brent

Replied 24 Mar 2003 10:40:32
24 Mar 2003 10:40:32 Simon Kemp replied:
doesn't seem to work at all now!<img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>
Replied 24 Mar 2003 13:04:15
24 Mar 2003 13:04:15 Julio Taylor replied:
Try this:

SELECT *
FROM InkStock
WHERE model LIKE '%MMColParam%' AND model LIKE '%isModel%' AND code LIKE '%isCode%'

-- julio

------------------------
Julio

PHP | MySQL | DWMX | ColdFusion

ICQ: 19735247

Reply to this topic