+-------------------+
| quote('abc''abc') |
+-------------------+
| 'abc\'abc' |
+-------------------+
1 row in set (0.00 sec)
得到的结果为什么两端会有单引号?函数自己加上的有什么用吗?
mysql> select position('ab','xyzabopq');
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''xyzabopq')' at line 1