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 meant by urlencode and urldocode? : Sql dba
What is program debugging?
i have a table like this. cityno cityname mails 1 BANGALORE 8KM 2 HSR LAYOUT 20KM 3 MEJISTIC 30KM 4 JAYADEVA 55KM 5 ITPL 80KM 6 HEBBAL 115KM I HAVE DATA LIKE THIS I WANT O/P LIKE THIS DISTANCE NO.OFCITY 0-50KM 3 51-100KM 2 101-150KM 4 AND SO ON pls give me answer. i want urgent
How many triggers can be applied to a table?
What is the need of merge statement?
Under what condition it is possible to have a page level lock and row lock at the same time for a query? : Transact sql
What is the main difference between a UNION statement and a UNION ALL statement? 1. A UNION statement eliminates duplicate rows; a UNION ALL statement includes duplicate rows. 2. A UNION statement can be used to combine any number of queries; a UNION ALL statement can be used to combine a maximum of two queries. 3. A UNION statement can only combine queries that have parallel fields in the SELECT list; a UNION ALL statement can combine queries with differing SELECT list structures. 4. A UNION statement cannot be used with aggregate functions; a UNION ALL statement can be used with aggregate functions. 5. There is no difference between the two statements; they are interchangeable.
What is the difference between stored procedure and view?
How do I sort a table in sql?
what is the use of double ampersand (&&) in sql queries?
Does inner join return duplicate rows?
what is sql optimization
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)