user id,created date,updated date [message #466552] |
Tue, 20 July 2010 02:08 |
shobhakashyapgmailcom
Messages: 58 Registered: June 2010 Location: India
|
Member |
|
|
hi,
i need to store the Single Sign On log in id as created by ,updated by,created date,updated date in the table during insertion of data..please help me to insert data ..
help me please
thanku
sk
|
|
|
|
|
|
Re: user id,created date,updated date [message #466612 is a reply to message #466607] |
Tue, 20 July 2010 06:15 |
Its_me_ved
Messages: 979 Registered: October 2009 Location: India
|
Senior Member |
|
|
You can create Before Insert and Before Update triggers on the related tables where you want to update those fields
Should be something like:
:NEW.Create_User := nvl(v('APP_USER'),USER);
:NEW.Created_date:=sysdate;
v() function is a function which returns the value of a session item, for example v('APP_USER') would return the name of the currently logged in user. Be careful while handling v() function.Please have a look at the documentation.
Regards
Ved
[Updated on: Tue, 20 July 2010 06:17] Report message to a moderator
|
|
|
|