List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:July 23 2008 9:25pm
Subject:Re: Log
View as plain text  
In the last episode (Jul 23), Pedro Belmino said:
> I do a system log of their log everything that is done(INSERTS, UPDADES
> and DELETES). Okay, can be done with trigger. But I need to know who
> performed the operation. How can I get get it inside the trigger?

Try the USER() or CURRENT_USER() functions:

http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_user
http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_current-user

-- 
	Dan Nelson
	dnelson@stripped
Thread
LogPedro Belmino23 Jul
  • Re: LogDan Nelson23 Jul
    • Re: LogPedro24 Jul
      • Re: LogDan Nelson24 Jul
      • RE: LogJerry Schwartz24 Jul
  • Re: LogPedro23 Jul