1。ROWNUM 是记录的条数,并不是表的字段

解决方案 »

  1.   

    1)rownum不是表的字段。
    For each row returned by a query, the ROWNUM pseudocolumn returns a number indicating the order in which Oracle selects the row from a table or set of joined rows.
      

  2.   

    2)如果不用表的别名,就不知道是t表的rownum还是d表的rownum
      

  3.   

    SQL> select 1 from (select rownum r from emp) where r<=1;         1
    ----------
             1楼主基础还是不扎实