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 データベースに小さな問題があります。列名に多くの不適切な文字が含まれています。ここで検索したところ、英数字以外を削除する方法しか見つかりませんでした。コンマを保持する必要はありません。アンダースコアとクエスチョン マーク ...「Cant unsee it」のはずなのに、「Can’t unsee it...」という悪い文字の例を挙げます。
php を使用せずに、この文字を直接 mysql に置き換えることはできますか? 正規表現が苦手なので教えてください
この mysql クエリを使用して、必要なテキストを更新および置換できます。
update [table_name] set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');