Charlatat Posted February 23, 2007 Share Posted February 23, 2007 search string = 'PHDOL1106ABCWk10'I can presently do a select statement WHERE (field LIKE '%PHDOL1106%') which works fine, but there's a lot of results to process.I would like it to return fewer results, so is there a way of doing a search similiar to this: WHERE (field LIKE '%PHDOL1106???Wk10%') ? The ABC in the above search string varies and so would need the query to process any letter in the ? part. Is this doable? If this doesn't make sense, let me know and I'll try to explain it better. Thanks Link to comment Share on other sites More sharing options...
pulpfiction Posted February 23, 2007 Share Posted February 23, 2007 You can try _ "underscore" wildcard. this looks for only one character..... .......... WHERE (field LIKE '%PHDOL1106___Wk10%') [contains 3 underscore, one for each character] Link to comment Share on other sites More sharing options...
Charlatat Posted March 1, 2007 Author Share Posted March 1, 2007 You can try _ "underscore" wildcard. this looks for only one character..... .......... WHERE (field LIKE '%PHDOL1106___Wk10%') [contains 3 underscore, one for each character]Thanks, that was EXACTLY what I needed! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now