Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question, Andreas.
Asked: March 20, 2019 - 11:53 am UTC
Last updated: March 27, 2019 - 7:16 am UTC
Version: 12.2
Viewed 1000+ times
SQL> create or replace 2 function f(i varchar2) return varchar2 is 3 begin 4 return i||'-'||to_char(systimestamp,'HH24MISS:FF'); 5 dbms_lock.sleep(0.5); 6 end; 7 / Function created. SQL> SQL> select rownum, f(rownum) x 2 from dual 3 connect by level <= 10; ROWNUM X ---------- ------------------------------ 1 1-165100:802000000 2 2-165100:863000000 3 3-165100:863000000 4 4-165100:897000000 5 5-165100:897000000 6 6-165100:930000000 7 7-165100:930000000 8 8-165100:964000000 9 9-165100:964000000 10 10-165100:997000000 10 rows selected.
Andreas, March 26, 2019 - 9:42 am UTC
Dieter, March 28, 2019 - 3:07 pm UTC
with function f(i varchar2) return varchar2 is begin return i||'-'||to_char(systimestamp,'HH24MISS:FF'); dbms_lock.sleep(0.5); end; select rownum, f(rownum) x, (select f(rownum) from dual) y from dual connect by level <= 10
The Oracle documentation contains a complete SQL reference.