用sql语句修改表列名

示例  
  A.   重命名表  
  下例将表   customers   重命名为   custs。  
   
  EXEC   sp_rename   'customers',   'custs'  
   
  B.   重命名列  
  下例将表   customers   中的列   contact   title   重命名为   title。  
   
  EXEC   sp_rename   'customers.[contact   title]',   'title',   'COLUMN'  
posted @ 2006-12-11 11:10  海浪~~  阅读(2040)  评论(1编辑  收藏  举报