Re: SELECT 1 FROM DUAL
wanted wrote:
> Hi all,
> Can someone explain to me what is "SELECT 1 FROM
> DUAL"
> Is dual a built-in table in MYSQL?
>
> thanks.
Quote from
http://dev.mysql.com/doc/refman/5.0/en/select.html:
"You are allowed to specify DUAL as a dummy table name in situations where no tables are referenced:
mysql> SELECT 1 + 1 FROM DUAL;
-> 2
DUAL is purely for compatibility with some other database servers that require a FROM clause. MySQL does not require the clause if no tables are referenced."
--
felix
Please use
BBCode to format your messages in this forum.
Subject
Written By
Posted
February 10, 2006 01:27AM
Re: SELECT 1 FROM DUAL
February 10, 2006 01:44AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.