ICode9

精准搜索请尝试: 精确搜索
  • 常用sql2019-02-02 17:03:36

    -- left join 以左表为主表 匹配右表中的数据select * from table1 ll left join( select * from table1_his ) hison ll.sbbh = his.sbbh -- union all 合并结果集 union 取出两个表中不重复的列select * from(select his.sbbh from table1_his hisunionselect ll.sbbh from tabl

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有