Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Select from dual return 3 rows !

RE: Select from dual return 3 rows !

From: Igor Neyman <ineyman_at_perceptron.com>
Date: Tue, 8 Nov 2005 16:03:57 -0500
Message-ID: <F4C27E77F7A33E4CA98C19A9DC6722A261F31C@EXCHANGE.corp.perceptron.com>


Nope.
What Jared was saying is that starting with particular version of Oracle, there is no way to create second (or third,...) row in dual. I.e., under 10.1 if you issue:
insert into dual values('Y');  

nothing happens: you don't get an error, BUT (which is more important) no additional rows created in dual.
You should really try it.


From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Hollis, Les
Sent: Tuesday, November 08, 2005 3:53 PM To: jkstill_at_gmail.com; Rudy.Zung_at_efi.com Cc: frank4oraclel_at_yahoo.dk; ORACLE-L; frank.hansen_at_kriminalforsorgen.dk Subject: RE: Select from dual return 3 rows !

Think what Rudy was trying to say is that it is a table and that additional rows CAN be inserted....not that they SHOULD.....or WOULD....  

Mistakes happen.....    

I have hit this issue twice in 13 years....once I THINK it was because of an import...the other ....I have no stinkin' clue.....  

But on both, applications started going crazy due to the multiple rows returned when only one expected.....fix was drop the table, recreate it and recreate the public synonym......this with Oracle support on the line......  


From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Jared Still
Sent: Tuesday, November 08, 2005 2:46 PM To: Rudy.Zung_at_efi.com
Cc: frank4oraclel_at_yahoo.dk; ORACLE-L; frank.hansen_at_kriminalforsorgen.dk Subject: Re: Select from dual return 3 rows !  

On 11/8/05, Rudy Zung <Rudy.Zung_at_efi.com> wrote:

        DUAL, when you really come down to it, is really just a table into which Oracle defaults with just a single record. However, because it is just a simple table, additional records can be inserted into it, as you have just discovered.          

That is version dependent.

At least as far back as 8.1.7.4, there can be only one row in sys.dual.

Try it.

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist


--
http://www.freelists.org/webpage/oracle-l
Received on Tue Nov 08 2005 - 15:06:21 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US