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

Home -> Community -> Usenet -> c.d.o.server -> Re: Complex logic query that I cannot figure out:(

Re: Complex logic query that I cannot figure out:(

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 13 Dec 2007 15:55:03 -0800
Message-ID: <1197590088.178331@bubbleator.drizzle.com>


hpuxrac wrote:

>> You have two choices:
>>
>> 1. Use Native Dynamic SQL
>> 2. Write an IF statement that, based on the parameters supplied,
>> chooses one path or the other
>>
>> Try both ... choose one.

> 
> A better approach might be to use plsql ( that can see which
> parameters are used ) and return a ref cursor

That's #2. IF statements, are, by definition, PL/SQL.

Yes that's me shaking my head in amazement.

-- 
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan_at_x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Thu Dec 13 2007 - 17:55:03 CST

Original text of this message

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