摘要: 查询的列不在同一表中必须使用连接内连接,外链接 -- 输出学生姓名以及对应的年级名称 内连接 select studentName,gradeName from student inner join grade on student.gradeId=grade.gradeId 隐式内连接 selec 阅读全文
posted @ 2017-07-05 15:11 春眠不觉笑 阅读(140) 评论(0) 推荐(0) 编辑
摘要: -- 聚合函数-- 查询表中一共有多少条记录select count(*) from sudent -- 查询表中字段不为空的行1.不为空select * from table where id <> "";select * from table where id != "";2.为空select 阅读全文
posted @ 2017-07-05 12:07 春眠不觉笑 阅读(569) 评论(0) 推荐(0) 编辑