Jump to content

SELECT WHERE clause


SharkBait

Recommended Posts

Am I right to assume that when you use wildcards (%) in a SELECT WHERE clause, that it will only match based on order of given terms?

 

IE:

 

SELECT * FROM name LIKE ('%this%that%')

 

Will only match: 'something like this is like that', or ' this thing is that thing' etc?

 

Where as

SELECT * FROM name LIKE ('%that%this%')

will not match any of the above, since the order of terms are reversed?

 

I would assume that FULLTEXT search would be the ideal thing to use, right? Since the terms being looked up can be in no particular order?

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.