Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在替换我的 mysql 数据库中的字符,虽然我可以替换诸如 $ 或 ~ 之类的字符,但我无法用它来替换以下符号 £。为什么?
$sql[$handle]['sql'] = 'UPDATE '.$table.' SET '.$field.' = REPLACE('.$field.',\''£'\',\''.$replace.'\')';
尝试用'£'替换CHR(156)语法替换
'£'
CHR(156)