問題タブ [find-replace]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
mysql - 他の列に基づいて MySQL 列を更新する
したがって、 table_membersと呼ぶ members テーブルがあります。とりわけ、emailという列があります。
table_oldnewemailというテーブルもあります。old_emailとnew_emailの 2 つの列があります。
1. table_members.email
が table_oldnewemail.old_email と等しい table_members の行を見つけます
2. 次に、table_members.email を対応する table_oldnewemail.new_email に置き換え
ます 3. すべての table_oldnewemail 値について繰り返します
必要なパーツはすべて揃っていると思いますが、これは MySQL クエリでも可能ですか? そのようなプロセスを自動化するためのスマートな方法は何でしょうか?