表:product 其中一字段名:proid     类型:bigint   小弟想把其类型换为   nvarchar(15)   
  SQL   语句如何先。谢谢

解决方案 »

  1.   

    alter   table   product   ALTER   COLUMN     proid     nvarchar(15) 
      

  2.   

    alter table alter column proid  nvarchar(15) null
      

  3.   

    alter table tb alter column proid nvarchar(15) 
      

  4.   

    表:product 
    其中一字段名:proid    类型:bigint       
    小弟想把其类型换为   nvarchar(15)  
    ---
    alter table product  alter column  proid  nvarchar(15) 接分了
      

  5.   


    -- 15个字符不够存BIGINT
    alter   table   product     alter   column     proid     nvarchar(19)   
    --or
    alter   table   product     alter   column     proid     varchar(19)   
      

  6.   

    create table product(proid bigint)
    insert into product select 9223372036854775807
    alter table product alter column proid varchar(19)
    select * from product9223372036854775807