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: equivalent for isdate, isnumeric

RE: equivalent for isdate, isnumeric

From: Khedr, Waleed <Waleed.Khedr_at_FMR.COM>
Date: Thu, 25 Sep 2003 21:14:40 -0800
Message-ID: <F001.005D1172.20030925211440@fatcity.com>


Boolean is A PL/SQL data type won't work in sql. Deterministic is nice to have to reduce the number of times this function gets called for the same value.

Regards,

Waleed

-----Original Message-----
Sent: Thursday, September 25, 2003 10:05 PM To: Multiple recipients of list ORACLE-L

Tanel Poder wrote:
> Boolean is a datatype existing and usable in Oracle.

 > Deterministic is an Oracle way to tell a function is deterministic, i.e.
 > always returning the same result on the same input. Required for FBIs for
 > example.
 > http://tahiti.oracle.com

Could you please kindly provide an example of its usage in SQL. Please create
an FBI using the original function below (as is, no modifications or wrappers).
It would be really intersting how "deterministic" functionality would work for a PL/SQL function that returns BOOLEAN datatype. Thank you!

-- 
Vladimir Begun
The statements and opinions expressed here are my own and
do not necessarily represent those of Oracle Corporation.


>>boolean is not SQL datatype and it's unclear what "deterministic"
>>means here.
>>
>>Mladen Gogala wrote:
>>
>>>create or replace function
>>>isnumeric(str varchar2) return boolean deterministic
>>>as
>>> num number:=0;
>>>begin
>>> num:=to_number(str);
>>> return(true);
>>>exception
>>> when others then
>>>return(false);
>>>end;
>>>/
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Vladimir Begun INET: Vladimir.Begun_at_oracle.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Khedr, Waleed INET: Waleed.Khedr_at_FMR.COM Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Received on Fri Sep 26 2003 - 00:14:40 CDT

Original text of this message

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