摘要: 1、查询Student表中的所有记录的Sname、Ssex和Class列。 Select sname,ssex,class from student 2、查询教师所有的单位即不重复的Depart列。 Select distinct depart from teacher 3、查询Student表的所有记录。 Select *from student 4、查询Score表中成绩在60到80之间的所... 阅读全文
posted @ 2016-04-24 16:00 请叫我魔术先生 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1.连接查询 select * from Info,Nation #得出的结果称为笛卡尔积 select * from Info,Nation where Info.Nation = Nation.Code join on连接 select * from Info join Nation #join连接 select * from Info join Nation on Info.Na... 阅读全文
posted @ 2016-04-24 13:48 请叫我魔术先生 阅读(140) 评论(0) 推荐(0) 编辑