exec sp_rename 'yourTable.Gu','barcode','COLUMN'

解决方案 »

  1.   

    为什么这样不行呢?atler table ccnf rename Gu to barcode好像标准的sql里有这样的做法.
      

  2.   

    SQL Server虽然大部分的语句都遵循SQL-99标准,
    但还是有少数的采用了自己的方式。
    而Oracle有更多的语句都不遵循SQL-99标准。业界虽然有标准,但并不一定是唯一的准则!
      

  3.   

    select barcode=Gu,field1,field2.... into #temp from yourtable --复制到临时表
    drop table yourtable --删除原表
    select * into yourtable from #temp --恢复临时表
      

  4.   

    atler table ccnf rename Gu to barcode