Using Like and SQL

kirkm

Registered User.
Local time
Today, 22:26
Joined
Oct 30, 2008
Messages
1,257
I have a couple of questions relating to sql.

Can you have criteria Like "b*sometext*" ?
Because I find it fails unless I use Like "*b*sometext*"

And, can you somehow have e.g. Like "*b?*sometext*" where the ? is any number ?

Thanks
 
Thanks jdraw. Useful link. What I was attempting does work. It just didn't work to start with as I was jjoining two fields as calculated field.
 
However, what if the text started with "[" and ended with "]".
because "
[*]" isn't working.
 
If you gave [ ] * in your field , you enclosed them inside []

Like "*[[*]*"
 
Thanks. It's working but as I play around with variations is isn't clear what or why it works!
e.g. I don't need the first * but do need the last one. (even though "]" is the last char in the field).
 

Users who are viewing this thread

Back
Top Bottom