表中有个内容”Loading \u202″
怎么SELECT * FROM table WHERE aa = “Loading \u202” 查不出来呢
返回了 0 行
怎么SELECT * FROM table WHERE aa = “Loading \u202” 查不出来呢
返回了 0 行
解决方案
10
mysql> select * from a1 where a=”Loading \u202″;
+–+
| a |
+–+
| Loading u202 |
+–+
1 row in set (0.00 sec)
+–+
| a |
+–+
| Loading u202 |
+–+
1 row in set (0.00 sec)
10
SELECT * FROM table WHERE aa = “Loading \\u202″
10
\要转义下的
SELECT * FROM table WHERE aa = “Loading \u202”
SELECT * FROM table WHERE aa = “Loading \u202”
10