sqlserver 改名

zenzuguo發表於2007-09-13

if exists (select 1
from sysobjects a,syscolumns b
where a.id = object_id('recruit_allocate') and
a.id = b.id and
b.name = 'modify_date')
exec sp_rename N'recruit_allocate.modify_date',N'allocate_date',N'column'
go

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/106285/viewspace-969234/,如需轉載,請註明出處,否則將追究法律責任。

相關文章