select  *  from
(
select  rownum rid,b.*,c.type  from  nsos.nlusr_news  b,nsos.nlusr_type  c  where   b.type=c.typeid  and  b.type='55' and  rownum<=2
) where  rm>0 ;

解决方案 »

  1.   

    select    *    from  
    (  
               select    rownum  rm,b.*,c.type    from    nsos.nlusr_news    b,nsos.nlusr_type    c    where                b.type=c.typeid    and    b.type='55'  and    rownum  <=2  
    )  where    rm  >0  ;
      

  2.   

    select   a. *    from  
    (  
               select    rownum  rm,b.*,c.type    from    nsos.nlusr_news    b,nsos.nlusr_type    c    where                b.type=c.typeid    and    b.type='55'  and    rownum  <=2  
    ) a  where    rm  >0  
    这样也不行
      

  3.   

    唯一重复的字段就是 c.type 和 b.type
    表结构:nsos.nlusr_news    
    newid title type parent subject dateTime src roll creator des image mimensos.nlusr_type:
    typeid type parent
      

  4.   

    select  a.*   from      
    ( select rownum rm,b.*,c.type ctype from  nsos.nlusr_news    b,nsos.nlusr_type c  where                                b.type=c.typeid and b.type='55' and  rownum<=2 
    )  a  where  rm>0;      
      

  5.   

    如果字段不多,就一个个列出来,不要用a.*,b.*之类的,这样就可以避免不必的麻烦.
    搞到自己也不知select 了那些字段.
    select  a.*   from      
    ( select rownum rm,b.*,c.type ctype from  nsos.nlusr_news    b,nsos.nlusr_type c  where                                b.type=c.typeid and b.type='55' and  rownum<=2 
    )  a  where  rm>0;