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.
重複をコピーしてデータをテーブルに挿入しようとしています...
ID, Value 1,1 1,2 1,3
今私がやりたいのは、ID '1' のすべての行を取得して再度挿入する挿入ステートメントですが、ID は 2 です。ID は一意ではありません。
すべての行をループせずに、通常の Select で 1 つずつ挿入してから挿入ステートメントを挿入する方法はありますか?
これを試して:
insert into TABLENAME (id,value) select 2, Value from TABLENAME where id = 1