Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query to Find ? Character 1

Status
Not open for further replies.

DonP

IS-IT--Management
Jul 20, 2000
684
US
Since ? is a wildcard character, how can a query be written that finds entries with a field that contains it:

Code:
SELECT *
FROM PCSkills_ALL_Merged
WHERE Name LIKE '*?*';

doesn't work, and neither does

Code:
SELECT *
FROM PCSkills_ALL_Merged
WHERE Name LIKE '*chr(63)*';

nor

Code:
SELECT *
FROM PCSkills_ALL_Merged
WHERE Name LIKE '*' & chr(63) & '*';

How is it done?

Don
Experienced in HTML, Perl, PHP, VBScript, PWS, IIS and Apache and MS-Access, MS-SQL, MySQL databases
 
WHERE Name LIKE '*[?]*'

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top