代码拉取完成,页面将自动刷新
同步操作将从 20级软件开发4班/SQL Server作业仓库 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
create database Student
go
create table Stuinfo2
(
StuSeat int,
StuName nvarchar(10) not null,
StuAge int,
StuSex nvarchar(1) default('1') check(StuSex in ('1','0')),
StuAddress nvarchar(200),
StuNo varchar(800) primary key
)
insert into Stuinfo2(StuNo,StuName,StuAge,StuAddress,StuSex)
values('s2501','张秋利','20','美国硅谷','1'),
('s2502','李斯文','18','湖北武汉','0'),
('s2503','马文才','22','湖南长沙','1'),
('s2504','欧阳俊雄','21','湖北武汉','0'),
('s2505','梅超风','20','湖北武汉','1'),
('s2506','陈旋风','19','美国硅谷','1'),
('s2507','陈凤','20','美国硅谷','0')
select * from Stuinfo2
create table Grade
(
ExamNo int identity(1,1),
stuNo varchar(800) references Stuinfo2(StuNo),
WrittenExam int,
LabExam int
)
insert into Grade(stuNo, WrittenExam,LabExam)
values('s2501', 50,70),
('s2502',60,65),
('s2503',86,85),
('s2504',40,80),
('s2505',70,90),
('s2506',85,90)
select StuSeat as 座位号, StuName as 姓名,StuAge as 年龄,StuSex as 性别, StuAddress as 地址,StuNo as 编号 from Stuinfo2
select StuName as 姓名,StuAge as 年龄, StuAddress as 地址 from Stuinfo2
select ExamNo as 学号, WrittenExam as 笔试, LabExam as 机试 from Grade
select 学号=ExamNo ,笔试=WrittenExam,机试=LabExam from Grade
select ExamNo 学号, WrittenExam 笔试, LabExam 机试 from Grade
select StuName+StuNo+StuAddress 邮箱 from Stuinfo2
select ExamNo + WrittenExam+ LabExam from Grade
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。