开发者

Select's Where Clause - Non Ascii Characters?

开发者 https://www.devze.com 2023-01-22 05:41 出处:网络
I\'m having a problem with non-ASCII chara开发者_如何学运维cters in a where clause Say for example a record in my table has :

I'm having a problem with non-ASCII chara开发者_如何学运维cters in a where clause

Say for example a record in my table has :

column_a Bom D� Street

And I want to see if this will find the record:

SELECT * FROM [tbl_test] where column_a = 'Bom D� Street'

This always returns no records.

Is there something you have to do to handle non-ASCII characters?


Try this: SELECT * FROM [tbl_test] where column_a = N'Bom D� Street'

This should treat the string as unicode and support the full extended character set.

0

精彩评论

暂无评论...
验证码 换一张
取 消