Dual tables in Oracle

Source: Internet
Author: User
  1. Strange, no specific table structure information found

Sql> describe dual;
Name Type Nullable Default Comments
----- ----------- -------- ------- --------
DUMMY VARCHAR2 (1) Y

Sql> SELECT * from dual;
DUMMY
-----
X

Purpose of the 2.DUAL table
Dual is an actual table in Oracle that can be read by any user, often in a SELECT statement block without a target table.

To query the current user:
Sql> Select User from dual;
USER
------------------------------
Test_user

Query system Date Time

Sql> select Sysdate from dual;
Sysdate
-----------
2015/10/15

To achieve a simple calculation:

Sql> select 12*3 from dual;

12*3
----------
36
Only allow querying data from the dual table, you cannot update,insert,delete, the database does not start properly after you delete the table.

Dual tables in Oracle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.