SQL server 实验一 数据定义

/* 1 创建学生表 */
create table student
(	Sno char(10),
	Sname char(10),
	Ssex char(2),
	Sage smallint,
	Sdept char(20)
);

/* 2 创建课程表 */
create table course
(	Cno char(2),
	Cname char(30),
	Cterm char(2),
	Ccredit tinyint
);

/* 3 创建选课表 */
create table sc
(	Sno char(10),
	Cno char(2),
	Grade tinyint
);

你可能感兴趣的:(SQL server 实验一 数据定义)