1.SQL–创建学生表和向学生表插入数据

--新建学生表

create table Student(

Sid varchar(10),

Sname nvarchar(10),

Sage datetime,

Ssex nvarchar(10)

)

--向学生表添加数据

insert into Student values(‘01‘,‘张磊‘,‘1995-02-08‘,‘男‘)

insert into Student values(‘02‘,‘李华‘,‘1995-06-11‘,‘男‘)

insert into Student values(‘03‘,‘王青‘,‘1996-01-06‘,‘男‘)

insert into Student values(‘01‘,‘李娟‘,‘1995-04-18‘,‘女‘)

insert into Student values(‘01‘,‘刘晓‘,‘1996-11-02‘,‘女‘)

insert into Student values(‘01‘,‘赵勇‘,‘1995-09-21‘,‘男‘)

insert into Student values(‘01‘,‘胡一刀‘,‘1995-07-17‘,‘男‘)

insert into Student values(‘01‘,‘罗莉‘,‘1995-10-14‘,‘女‘)

insert into Student values(‘01‘,‘蔡辉‘,‘1995-06-25‘,‘男‘)

insert into Student values(‘01‘,‘沈晨‘,‘1996-05-14‘,‘女‘)

相关文章