Hi!
DUAL is a table automatically created by Oracle along with the data dictionary. DUAL is in the schema of the user SYS, but is accessible by the name DUAL to all users. It has one column, DUMMY, defined to be VARCHAR2(1), and contains one row with a value 'X'. Selecting from the DUAL table is useful for computing a constant expression with the SELECT statement. Because DUAL has only one row, the constant is returned only once. Alternatively, you can select a constant, pseudocolumn, or expression from any table, but the value will be returned as many times as there are rows in the table.
Columnt length doesn't affect on value you choose from table.
You can select from any your table any constant value.
For example:
--------
create table test( a varchar(1))
/
select sysdate from test;
select user from test
etc ....
--------
Best regards!
Yaroslav.
Main Topics
Browse All Topics





by: kretzschmarPosted on 2002-04-19 at 03:25:58ID: 6953108
dual is a virtual table