示例
  A.   重命名表   
  下例将表   customers   重命名为   custs。   
    
  EXEC   sp_rename   'customers',   'custs'   
    
  B.   重命名列   
  下例将表   customers   中的列   contact   title   重命名为   title。   
    
  EXEC   sp_rename   'customers.[contact   title]',   'title',   'COLUMN'  

注:已添加的列将无法删除 

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2022-03-06
  • 2022-03-10
  • 2022-12-23
  • 2022-03-06
  • 2021-07-24
猜你喜欢
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-01-23
相关资源
相似解决方案