日期:2014-05-16 浏览次数:20363 次
select ename || 'works as a' || job as msg from emp where deptno='10'
select concat(ename,'works as a',job) as msg from emp where deptno='10'
select ename + 'works as a' + job as msg from emp where deptno='10'
select * from emp fetch first 5 rows only
select * from emp limit 5
select * from emp where rownum < 5
select * from emp order by rahnd() fetch first 5 rows only
select * from emp order by rand() limit 5
select * from ( select ename , job from emp order by dbms_random.value() ) where rownum < =5 ;