Explain the concept of the DUAL table.
Answers were Sorted based on User's Feedback
Answer / saraswathi muthuraman
Oracle will have a default table called 'DUAL'.
Dual table will have only one column "DUMMY". U cann't
insert values into dual table. By default, a row will
existing in dual table.
SQL> desc dual;
DUMMY varchar2(1)
SQL> select * from dual;
X
1 row selected.
SQL> insert into dual values (10);
insert into dual values (10)
*
ERROR at line 1:
ORA-01031: insufficient privileges
U can create you own table with the name of dual.
SQL> create table dual(xy number,zz number);
Table created.
SQL> desc dual;
xy number
zz number
u can insert values in you own dual table.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / eshwari
Dual table is a sample permanent table which come along with
oracle.
for example if u want to knw the sin(45) value then u have
to retreave it from a table.but there is no table to
retreave that value.
so we use the sample table dual as table name in place of
table name in the select query.
ex:select sin(45) from dual;
| Is This Answer Correct ? | 4 Yes | 0 No |
Query to retrieve record for a many to many relationship ?
Can group functions be used in the order by clause in oracle?
How do I find the database name in oracle?
In AP we done Customizations for Late Payments Charges. For Reporting Purpose What are the Documents Prepared for Customer Understanding??
How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?
Is it possible to enter only time value into a column of a table in sql?
What is the effect of setting the value 'FIRST_ROWS' for OPTIMIZER_GOAL parameter of the ALTER SESSION command ?
What are the data types in oracle?
How to download oracle database 10g xe?
What do database buffers contain?
How to drop an index?
What is Redo Log Buffer in Oracle?