I'm no doubt missing something blindingly obvious, but I am puzzled at this behaviour ....
Returns all the results with oil in the description ....Code:SELECT * FROM MGJ_Parts WHERE Description LIKE '%oil%'
e.g.AndCode:MGJ Chain Oil (Non Fling) MGJ Rock Frost (Anti Freeze Air Tool Oil) MGJ Hydraulic Oil HLP32 .. ..
Returns ...Code:SELECT * FROM MGJ_Parts WHERE Description LIKE '%air%'
But ....Code:MGJ Rock Frost (Anti Freeze Air Tool Oil)
Returns nothingCode:SELECT * FROM MGJ_Parts WHERE Description LIKE ' %air% ' AND Description LIKE '%oil%'![]()
Phill.
Last edited by phillw; 10-01-2009 at 03:09 AM. Reason: Typo
Ooops ....
My Code was placing spaces around %air% .... Found it - Only an hour of bashing my head against the wall
Phill.
LOL! I just had to say it.. glad to know i'm not the only crazy one that hates, comma's, parenthesis, quotes, spaces, and semi colons.![]()
CodeMonkey +15 | CommunicationSkills -34 | ClarityUsingEnglish -55 | Clarity while pointing at the monitor and making vigorous facial expressions, occasional grunts, and mouth clicks +150
bbs - found another bug in the search routine ... ::SIGH::
Last edited by phillw; 10-08-2009 at 04:04 PM. Reason: Found a bug in my code
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks