--
Fabio GRANDE
fab...@NOSPAMfileita.it
Try USER
--
---------------------------------------------------------------
Dipl.-Inform. Günter Huerkamp
Web : http://gh.notrix.de
Email
privat : mailto:guenter-...@web.de
privat : mailto:guenter-...@t-online.de
dienstlich : mailto:Guenter....@lk-wl.nrw.de
---------------------------------------------------------------
You can use USER in the VALUES clause of an insert statement, for instance if
you want to insert the name of
the user that performed the insert/update....you could use a default value
(user) for when an insert occurs and when an update
occurs you can populate an "UPDATED BY" field in the table....whatever method
you use, I think it's the USER function
you're looking for.
Best regards,
Steve
the USER psuedo column works. As well, you can get the v$session row via:
select * from v$session
where sid = ( select sid from v$mystat where rownum=1 );
you'll need DIRECT access to v_$session and v_$mystat or have your dba setup
that above query as a view and grant you DIRECT select on that view.
--
Thomas Kyte (tk...@us.oracle.com) http://asktom.oracle.com/
Expert one on one Oracle, programming techniques and solutions for Oracle.
http://www.amazon.com/exec/obidos/ASIN/1861004826/
Opinions are mine and do not necessarily reflect those of Oracle Corp
Van
"Stephen Bell" <stephe...@cgi.ca> wrote in message
news:3B531D18...@cgi.ca...