select rownum,table1.field1,table2.field2 from table1 
where rownum<=10
order by table1.field2

解决方案 »

  1.   

    to joyuce: 谢谢,不过没太看明白
    我的意思是field1, field2 是同一个表里的二个字段
      

  2.   

    一条语句是解决不了的。
    怕要用做一个过程或函数。不会吗。看看pl/sql
      

  3.   

    select * from (select rownum,table1.field1,table2.field2 from table1 
    order by table1.field2) where rownum<=10
      

  4.   

    SELECT TOP 10 table1.field1,table2.field2 from table1 
    order by table1.field2tabel1 和tabel2 有什么关系呢?