Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: What is "dual"?
Well Chris, you have got some rather complicated answers, so I try to give you a more simple one:
DUAL is a table with just one row. It is made for SQL access. You see, in PL/SQL you have a lot of commands to deal with data, but in SQL you have not. If you want to get the sytem date for example there is no SQL command like "GIVE SYSDATE". The only command to get data is "SELECT" and this command needs a table and will give you rows of data. As you want just one single field that is not stored in a table, you use the dummy table DUAL:
SELECT SYSDATE FROM DUAL; Oops, is this explanation more simple than the others? Sometimes it is hard to explain even simple things...
Sent via Deja.com
http://www.deja.com/
Received on Tue Jan 16 2001 - 02:28:43 CST