修改数据库字段

Posted on 2009-09-14 06:12  Andylee  阅读(278)  评论(0编辑  收藏  举报
alter   table   tablename   alter   column   title   nvarchar(80)   not   null
use LiLe520
alter table [a0818165818].[Gift] alter column from_post_code nvarchar(50) null
alter table [a0818165818].[Gift]
drop column gift_num
go
alter table [a0818165818].[Gift]
add gift_num int identity(1,1) primary key
select * from [a0818165818].[Gift]

Copyright © 2024 Andylee
Powered by .NET 9.0 on Kubernetes