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: Simple Select Return Record

RE: Simple Select Return Record

From: Christian Antognini <Christian.Antognini_at_trivadis.com>
Date: Thu, 9 Jun 2005 10:44:32 +0200
Message-ID: <7F0C000A3ABA6241A10C9ABF37EEB46D0F0166@MSXVS01.trivadis.com>


Hi  

>select count(*)=20

>from dual

>where exists (select null from employee_tbl where employeeid=3D5);
 

If excellent performance is a must, don't do that.

To fetch a single row from a query and set a flag is faster.    

HTH Chris

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jun 09 2005 - 04:49:33 CDT

Original text of this message

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