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 数据库中的多个不需要的登录,因为它太大了。是否有任何可用的脚本来删除该标志?
带有多个符号的示例记录:-
[]No. 11, Persiaran Bukit [] Satu&[]Taman @Sri %Nibong
我在这里建议的是准备一个包含所有可能不需要的字符的表,然后使用替换功能在一个选择查询中处理它们。
使用REPLACE功能。
REPLACE
UPDATE tablename SET ColName = REPLACE(REPLACE(REPLACE(Colname, '&', ''), '@', ''), '%', '')