学生基本信息查询l例题.docVIP

  • 38
  • 0
  • 约7.86千字
  • 约 9页
  • 2017-05-10 发布于河南
  • 举报
学生基本信息查询l例题

1.选取表中所有的列:查所有学生的所有信息 select * from student 2.选取表中所指定的列:查询学生表中所有学生的学号、姓名、入学成绩 select sno,sname,sscore from student 3.选取表中所指定的列和指定的行:查询学生表中‘’班的学生的学号、姓名、入学成绩 use student select sno,sname,sscore,classno from student where classno 4.查询学生表‘’班的男生信息 select * from student where classnoand ssex=男 5.查询出生日期在年到年间的教师信息 use student select * from teacher where tbirthday=1975-1-1 and tbirthday=1980-12-31 6.查询职称为副教授的女教师信息 use student select * from teacher where tsex=女 and title=副教授 7.查询年龄超过的职称为副教授的女教师信息 use student select * fro

文档评论(0)

1亿VIP精品文档

相关文档