sql - MySQL SELECT LIKE space encoding issue? -
I've spent several hours trying to solve this problem, but I can not solve it.
A column contains values like values, and the value contains some spaces.
one? Å æ æ æ? An å ¨ ¨ å å å å å æ ?? Μäº ?? Æ ???? Ç®¡ I want all values "one" ???? Åña ¼ æ ???? One? - One? Line Ç ?? Μäº ?? Æ ???? 管 "but spaces can be ASCII encoding ( '\ x0a'), or UTF8 encoding ( '\ xa0'), when I will thus execute SQL string, any back.
select * from `icbase_icattrvalue` like Jhan` value` 'a ???? å | ä¼ æ ???? Å ?? ¨ - a ???? Ç ?? Μäº ?? Æ ??? ? 管 ' I like SQL try:
select * from `icbase_icattrvalue` where REPLACE (` value`,' \ xa0 ',' like space ') (' a '????' 'an æ? Å ?? ¨ ¨ ¨ μ μ μ μ μ æ æ æ æ ç μ μ μ μ', '\ xa0', ' ') Range 0 30 or
select * icbase_ica The ttrvalue` where REPLACE ( `value`, using UTF8 four (160 CONVERT ()), '') such as REPLACE ( 'a ???? å | ä¼ æ ???? Å ?? ¨ - C ?? μäº ?? æ ???? 管 'converting (using four (160) UTF8),' ') LIMIT 0, 30 or some similar SQL string, but they do not help All of them do not return.
What should I do, to select the value for the equal string, but ignore the encoding problem in such a place.
I'm sorry for my bad english.
As Alexander Gelbach says in the comment I also think That it is wrong due to the wrong code. Choose
Comments
Post a Comment