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 <tablename> SET <destination column name> = <source column name>
このスクリプトは、field1 のすべての値を、対応する行の field2 の値で更新します。
UPDATE table SET field1 = field2