# Pseudocolumn ==> http://goo.gl/NKgL8 참고하세요.
: behaves like a table column, but is not actually stored in the table
select rownum as no, empno, ename, sal
from emp;
select rownum as no, empno, ename, sal
from emp
where rownum <= 3;
select rownum as no, rownum*2 as no2, rownum*10 as no3
from emp
where rownum <= 3;
select rownum, rowid, empno, ename, sal
from emp;
'Oracle > SQL Fundamentals I' 카테고리의 다른 글
9일차 문제(subquery) (0) | 2012.04.16 |
---|---|
9일차 # Top-N reporting(analysis) (0) | 2012.04.16 |
9일차 # 6-16: ANY, ALL (0) | 2012.04.16 |
9일차 # 6-14: Multiple-subquery (comparison) operator (0) | 2012.04.16 |
9일차 # 6-13:single-row 서브쿼리의 리턴 값이 null일 경우 (0) | 2012.04.16 |