码迷,mamicode.com
首页 > 数据库 > 详细

oracle dual表

时间:2015-02-14 09:52:52      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:


     DUAL is a table automatically created by Oracle Database 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. Refer to "About SQL Functions" on page 5-2 for many examples of
selecting a constant value from DUAL.

ps:refer from book<<Oracle Database SQL Language Reference>>

oracle dual表

标签:

原文地址:http://www.cnblogs.com/k22009/p/4291259.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!