Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: What is "dual"
Mirwais Qader wrote:
>
> Something that has always puzzled me is what is "dual"?
>
> I know (at least I think I do) it is a table of 1 row and 1 col, but
> how is it used and what benefit is it?
>
> Thanks for any info.
> PS. Please respond by email.
>
> -Mir.
If you are writing a pl/sql block and you need the system time in a variable, the easiest way is to:
select sysdate into :variable from dual;
-- Thomas Griffin Project Leader QUALITECH Systems, Inc. tgriffin_at_qualitech.comReceived on Mon Feb 03 1997 - 00:00:00 CST