摘要: 一、inner join 、 in 、exists 1 explain 2 select a.id 3 from application as a 4 where exists( 5 select 1 6 from dispatch_app_history as d 7 where d.bomber 阅读全文
posted @ 2018-09-18 22:39 雨落滴碎荷 阅读(6285) 评论(0) 推荐(0) 编辑
摘要: 一、sql子句 1、作用 <1> select:基本的查询语句,用来表中查询数据,确定结果集的内容。 <2> from(join):确定数据的来源,生成相应的临时表 <3> where:对from子句得到的临时表进行条件筛选,得到相应的临时表 <4> group by:把条件筛选后的结果进行分组 < 阅读全文
posted @ 2018-09-18 22:29 雨落滴碎荷 阅读(341) 评论(0) 推荐(0) 编辑