What is magic table?
Answers were Sorted based on User's Feedback
Answer / vaibhavi_dixit
Dual table is know as magic table, which has only one
columns with name as "DUMMY" and a row with value X.
One can describe DUAL with desc dual; command.
It is mainly used for testing some math expressions or some
character functions like
select (2+2) from dual;
It is automatically created,assigned to SYS but accessible
to all users.
VD
| Is This Answer Correct ? | 19 Yes | 2 No |
Answer / shekharjchandra
We can view the structure of the DUAL table by
SQL> DESCRIBE DUAL
or being in SYS user
SYS> SELECT DBMS_METADATA('TABLE','DUAL','SYS') FROM DUAL ;
Before that use below set command
SQL> SET PAGESIZE 100 -- or whatever you like so that you can see whole structure of the create table definition
Regards
J
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / annam.n
dual is an imaginary table.it only used for process any
functions on there, but we can't view the structure of the
dual table.so the dual table is a magic table
| Is This Answer Correct ? | 6 Yes | 10 No |
Answer / brahma
They are two tables in MS Sql Server
1.Delete table
2.Update table
| Is This Answer Correct ? | 3 Yes | 11 No |
what is the bond code in materialized view?
what is the different between now() and current_date()? : Sql dba
Initially question was asked to mention the types of indexes. Then asked about BITMAP INDEX and B-Tree Index
What is difference between a PROCEDURE & FUNCTION ?
What is Pragma EXECPTION_INIT ? Explain the usage ?
Describe the Index, Types of index, At what situation we have used? Which one s better than others?
How many unique keys can a table have?
I need a exceptoin in pl/sql block so that if any errors occur in the block then no exception should errors should raise?
What is a temporal table?
What is pls integer?
What is procedure and function?
What is procedure and function in sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)