Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Username in PL/SQL
You can get the user calling the function with the key word USER
in a select statement:
create function my_function...
is
calling_user varchar2(30);
...
begin
select USER into calling_user from dual;
...
end;
/
Edward Beemer a écrit dans le message <7q2pr6$ibs$1_at_zonnetje.nl.uu.net>...
>Hello guys,
>
>How can I use the username of the currently logged on user in a PL/SQL
>function?
>
>I would like to call some function with the current username as a parameter.
>
>With kind regards,
>Edward Beemer
>
>
Received on Thu Aug 26 1999 - 03:08:28 CDT
![]() |
![]() |