zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    spring和mybatis整合
    mybatis(二)
    Django-model基础
    用户用户组管理:用户配置文件-组信息文件
    第一章:编译程序概论
    软件包管理:脚本安装包
    软件包管理:源码包管理-源码包安装过程
    软件包管理:源码包管理-源码包与RPM包的区别
    软件包管理:yum在线管理-yum命令
    软件包管理:rpm包管理-yum在线管理-IP地址配置和网络yum源
  • 原文地址:https://www.cnblogs.com/Han-org/p/7278488.html
Copyright © 2011-2022 走看看