修改数据库字段

Posted on 2009-09-14 06:12  Andylee  阅读(280)  评论(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]

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3