
n将“年龄”字段Sage改为“出生日期”字段Sbirth,类型为SMALLDATETIME;
n将“系名”字段Sdept改为“系号”字段Dno,类型为CHAR(2),并将该字段设置为外键,参考表为jx_Dept。
n增加一个“生源地”字段Snative,类型为NVARCHAR(20)
alter table jx_Stu rename column Sage to Sbirth;
alter table jx_Stu modify(Sbirth SMALLDATETIME);
alter table jx_Stu rename column Sdept to Dno;
alter table jx_Stu modify(Dno CHAR(2));
alter table jx_Stu add constraint 约束名 foreign key(Dno) references jx_Dept(Dno)
alter table jx_Stu add(Snative NVARCHAR(20));