Alter table stud_info
add 身份证号码 varchar(18) null
alter table sc alter column grade int
alter table student add unique(sname)
alter table sc
ALTER TABLE 123
ADD
CONSTRAINT PK_BH
PRIMARY KEY 编号
本文介绍了如何通过SQL语句来调整表结构,包括添加字段、修改字段类型、设置唯一约束及定义主键等操作。
Alter table stud_info
add 身份证号码 varchar(18) null
alter table sc alter column grade int
alter table student add unique(sname)
alter table sc
ALTER TABLE 123
ADD
CONSTRAINT PK_BH
PRIMARY KEY 编号
5万+
1965

被折叠的 条评论
为什么被折叠?
