积累:收集常用sql

--重命名表 
--下例将表 customers 重命名为 custs。 
EXEC sp_rename 'customers', 'custs' 

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

 



posted @ 2012-02-27 10:28  easeyeah  阅读(143)  评论(0编辑  收藏  举报