title: Multiple events in one MySQL trigger
body: <p>I want to monitor multiple events on one table using MYSQL trigger. When these events happened, I can do something on this database. Codes below can accomplish this task:  </p>
  
  <pre><code>DROP TRIGGER if exists trigger_sample1;;  
  CREATE TRIGGER trigger_sample1  
  after UPDATE on table_1 for each row  
  begin  
      /* do something */  
  end ;; 
  
  DROP TRIGGER if exists trigger_sample2;;  
  CREATE TRIGGER trigger_sample2  
  after INSERT on table_1 for each row  
  begin  
      /* do something */  
  end ;; 
  
  DROP TRIGGER if exists trigger_sample3;;  
  CREATE TRIGGER trigger_sample3  
  after DELETE on table_1 for each row  
  begin  
      /* do something */  
  end ;; 
  </code></pre>
  
  <p>But I wish to combine these triggers into one trigger. I tried some code like:  </p>
  
  <pre><code>DROP TRIGGER if exists trigger_sample;;  
  CREATE TRIGGER trigger_sample  
  after UPDATE, INSERT, DELETE on table_1 for each row  
  begin  
      /* do something */  
  end ;;  
  </code></pre>
  
  <p>This can not work.I also tried: </p>
  
  <pre><code>DROP TRIGGER if exists trigger_sample;;  
  CREATE TRIGGER trigger_sample  
  after UPDATE on table_1  
  after INSERT on table_1  
  after DELETE on talble_1  
  for each row  
  begin  
      /* do something */  
  end ;;  
  </code></pre>
  
  <p>This neither work. Is there some advice?</p>