參考:bigintInteger (whole number) data from -2^63 (-9223372036854775808) through 2^63-1 (9223372036854775807). Storage size is 8 bytes.intInteger (whole number) data from -2^31 (-2,147,483,648) through 2^31 - 1 (2,147,483,647). Storage size is 4 bytes. The SQL-92 synonym for int is integer.smallintInteger data from -2^15 (-32,768) through 2^15 - 1 (32,767). Storage size is 2 bytes.tinyintInteger data from 0 through 255. Storage size is 1 byte.

解决方案 »

  1.   

    是这样的情况
    但不会超出范围 id会从头开始计数如果想重新排序的话 看一下cloth4(cid,clcode,cloth) cid字段为identity(int,1,1) 重建cid
    select * into #aa from cloth4
    truncate table cloth4
    dbcc checkident(cloth4,reseed,0)
    set IDENTITY_INSERT ON
    insert cloth4(clcode,clname)  select clcode,clname from #aa
    //注意不能选择cid列
    drop table #aa
      

  2.   

    标识就是这样的!
    要不你用插入的时候用
    insert 表 select isnull(max(id),0)+1,其他字段值 from 表