可以这样
select  *  from  dept  where  deptno  in('10')
 union all
selecr * from dept where deptno in('10')

解决方案 »

  1.   

    to: hailensen(蕊) 如果要union all很多个这样的查询语句会不会很影响查询速度的
      

  2.   

    这个需求比较怪,好像除了UNION ALL 也没有什么办法吧,呵呵,关注!
      

  3.   

    是啊,我就是想改sql语句简单点,不然要改数据结构,麻烦啊!!
      

  4.   

    select  a.*  from  (select  *  from  dept  where  deptno='10') a,(select 1 c from dual union all select 1 from dual);如果一定不想看到union all
    select  a.*  from  (select  *  from  dept  where  deptno='10') a,(select rowid from all_tables where rownum<=2);