• SQL语句搜索中 union all 联合查询


    select * from (    
                select * from(
                    select * from (select  
                        id,
                        major_name as title,
                        createddate as shijian,
                        major_dense as miji,
                        '专业动态' as doctype
                    from sf_majorinfo
                    where status!='VO'

                    union all

                    select  
                        id,
                        tec_name as title,
                        createddate as shijian,
                        tec_dense as miji,
                        '技术信息' as doctype
                    from sf_technology
                    where status!='VO'
                    union all

                    select  
                        id,
                        spe_name as title,
                        createddate as shijian,
                        spe_dense as miji,
                        '标准规范' as doctype
                    from sf_specification
                    where status!='VO')a
                    where  a.id in (Variables.indocid)
                ) where rownum < Variables.endNumber
            ) where rownum > Variables.startNumber

  • 相关阅读:
    在Android工程中运行Java程序问题
    sklearn.neighbors.kneighbors_graph的简单属性介绍
    python中的“.T”操作
    numpy中关于*和dot的区别
    一个Window Service引发的感想
    项目管理之初步认识
    由敏捷开发中开发认领自己的工作内容的感想
    SQL Server2008 inner join多种方式的实践
    浅谈业务逻辑和技术哪个更重要
    敏捷人生之初步认识
  • 原文地址:https://www.cnblogs.com/Han-org/p/7278488.html
Copyright © 2020-2023  润新知