有一个[学生课程]数据库,数据库中包括三个表:

2024-11-30 20:34:52
推荐回答(2个)
回答1:

1.自己手动建吧!
2.select DISTINCT(Sno) from SG where Grade<60
3.update Student set Sage='22' where Sno='05001'
4.select cast(Grade) from Gourse where Cno=1
5.
CREATE PROCEDURE getDetailByName
@Sname NVARCHAR(10),
@intCount int ouput

AS
BEGIN
SELECT @intTotalCount=count(*) FROM Student WHERE Sname=@Sname
if @intCount =1
BEGIN
select * from Student where Sname=@Sname
END
ELSE
BEGIN
print '不存在此学生'
END
END
GO

6.select Sname,Ssex,Sage from where Ssex=N'男' and Sdept =N'计算机系' and Sname like '赵%'

7.

8.INSERT INTO Student(Sno,Sname,Ssex,Sage,Sdept) VALUES('05020','丁莉','女','17岁','计算机')

回答2:

啥不回家多多看点课本,就能解决了.