We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

SQL WHERE question

Medium Priority
325 Views
Last Modified: 2012-06-27
I need to find the records which contain some specicial characters such as a trademark. In Visual Basic (maybe unicode?) the trademark is represented by AscW(174).
How would I structure my WHERE clause to return the records that contain the trademark?

Select Field1 From TableA where Field1 Like ???????????  or Contains?

Thanks,
pat
Comment
Watch Question

Lead Software Engineer
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Commented:
You can use the character in sidle the like operater and do something like this
SELECT Field1 FROM TableA WHERE Field1 LIKE '%' + char(174) + '%'

Open in new window

Author

Commented:
Thank you both,
I was using Chr and not Char. It now works.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.