随笔分类 -  SQL

摘要:MySQL中"full outer join"的实现 表ta 表tb 使用:【left join】 union 【right join】 select t1.dim_a, t1.qty qty_a, t2.dim_a dim_b, t2.qty qty_b from ta t1 left join 阅读全文
posted @ 2021-04-21 17:34 SailorG 阅读(737) 评论(0) 推荐(0)
摘要:一、MySQL中的字段及执行顺序: select 查询列表 ⑦ from 表1 别名 ① 连接类型 join 表2 ② on 连接条件 ③ where 筛选 ④ group by 分组列表 ⑤ having 筛选 ⑥ 过滤出数据才能显示,因此在select前 order by排序列表 ⑧ 有数据之后 阅读全文
posted @ 2021-02-18 23:07 SailorG 阅读(158) 评论(0) 推荐(0)