遇到个问题 希望牛人指导指导,
需要通过存储过程将一张表里面的数据的ID(int类型)转变成bigint类型,不知道改如果着手,希望高人指点

解决方案 »

  1.   

    alter table tb alter column id bigint
      

  2.   

    create proc abc
    as
    alter table test alter column id bigint是这样吗?
      

  3.   

    create proc abc
    as
    begin
    alter table test alter column id bigint
    end
      

  4.   


    create table tb(id int)
    gocreate proc get_up
    as
    alter table tb alter column id bigint
    goexec get_updrop proc get_up
    drop table tb