数据库sql语句select数据查询练习题
首先创建题目需求的表,分别为sc(学生选课表),student(学生表),stugrade(成绩表)1.查询学生选课表中的全部数据select * from sc;2.查询全体学生的姓名、学号和所在系。select sname,sno,sdept from student;3.查询全体学生的姓名及其出生年份。select sname,2022-sage as 出生年份 from student;4.查询计算机系全体学生的姓名。select sname from student where sdept='计算
原创
2022-12-03 11:58:43 ·
3333 阅读 ·
3 评论