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.
我可以使用“替换”创建查询以从列内容中删除多个字符\字符串吗?
例如我有:
UPDATE table1 SET column1 = REPLACE(column1, '\r\n', '');
但是,如果我想删除多个字符或字符串,例如:
<br /> < > <\r>
是否可以在单个查询中运行它?
级联它
UPDATE table1 SET column1 = replace(replace(REPLACE(column1, '\r\n', ''), '<br />',''), '<\r>','')