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>','')