zoukankan      html  css  js  c++  java
  • 如何修改sql server 表中自增长ID列,因删除而不连续。可以使用临时表

    1.使用局部临时表来调整自增长列
    select * from #newtemp from grade --相当于备份
    truncate table grade--删除数据
    insert into grade select classname from #newtemp

    2.使用全局临时表来调整自增长列
    select * from ##temp from grade --相当于备份
    truncate table grade--删除数据
    insert into grade select classname from ##temp

  • 相关阅读:
    vim
    echo
    kill/xkill/killall/pkill/pidof
    ssh
    使用GSON
    使用GSON
    解析JSON
    解析JSON
    Pull解析方式
    Pull解析方式
  • 原文地址:https://www.cnblogs.com/jinjingBlog/p/9803633.html
Copyright © 2011-2022 走看看