USE XK2016
GO
--创建Department部门表
CREAT TABLE Department
(DepartNo nvarchar (2)NOT NULL,
DepartName nvarchar (2)NOT NULL,)
GO
--创建Course课程表
CREAT TABLE Course
(CouNo nvarchar (3)NOT NULL,
CouName nvarchar (30)NOT NULL,
kind nvarchar (8)NOT NULL,
Credit int (8) NOT NULL,
Teacher nvarchar (20)NOT NULL,
DepartNo nvarchar(2)NOT NULL,
SchoolTime nvarchar (10)NOT NULL,
LimitNum int(5)NOT NULL,
WillNum int (5)NOT NULL,
ChooseNum int(5)NOT NULL)
GO
--学生表新增生日列
ALTER TABLE Student
--指定增加列的表名
ADD birthday datetime null,bz nvarchar(20) null
--ADD 添加列的属性
GO