Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Deterministic Functions: am I missing something?
drop table test_det;
create table test_det (c1 date);
create or replace function f2 (p1 in number, p2 in number) return number
deterministic is
pragma autonomous_transaction;
begin
insert into test_det values (sysdate);
commit;
return(p1 * p2);
end;
/
select f2 (1,3) from dual where f2 (1,3) = 3;
F2(1,3)
Waleed
--
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 Thu Oct 02 2003 - 17:54:31 CDT