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 60 の前に行を挿入したいのですidが、これは自動インクリメント値です。id最後に、 のすべての値を1 ずつ増やして、 の主キーに衝突がないようにしたいと考えていますid。
id
これを試して::
ステップ1:
update table set id=id+1 where id>=60
ステップ2:
Insert into table(id, column1....) values (60,....)