日期:2014-05-16 浏览次数:20362 次
SQL> create table tt(name varchar2(10),num number,price number);
SQL> insert into tt values('a',4,10);
SQL> insert into tt values('b',2,8);
SQL> commit;
SQL> select name,1 num,price 2 from tt,(select rownum rn from dual connect by level<=5) 3 where rn between 1 and num 4 order by name;
SQL> select * from test;