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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Stored function question

Re: Stored function question

From: <rtproffitt_at_my-dejanews.com>
Date: Thu, 13 May 1999 00:09:37 GMT
Message-ID: <7hd57n$4oo$1@nnrp1.deja.com>


Since the item in the where clause would be a stored function returning boolean, you would have to pass it everything it needs to return and answer, such as:

   Function Is_Preferred_Customer (field1, field2, field3....etc)    return Boolean as
   .....if field1='a', etc......
   return TRUE.

Remember that the where clause will be executed for every row of customers, and will be slower that raw SQL. There will also be no opportunity for optimizer to look for indexes on various fields since they are now buried in the function call.

Robert Proffitt
Beckman Coulter
Brea California

--== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.--- Received on Wed May 12 1999 - 19:09:37 CDT

Original text of this message

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