title: SQLite - Create Trigger for Insert or Update
body: <p>Is this possible to create one trigger for Insert and Update operations in SQLite?
  I mean, something like this:</p>
  
  <pre><code>CREATE TRIGGER dbo.TR_TableName_TriggerName
      ON dbo.TableName
      AFTER INSERT, UPDATE, DELETE
  AS
  BEGIN
      SET NOCOUNT ON;
  
      IF NOT EXISTS(SELECT * FROM INSERTED)
          -- DELETE
          PRINT 'DELETE';
      ELSE
      BEGIN
          IF NOT EXISTS(SELECT * FROM DELETED)
              -- INSERT
              PRINT 'INSERT';
          ELSE
              -- UPDATE
              PRINT 'UPDATE';
      END
  END;
  </code></pre>
  
  <p>It's for MS SQL i think, source: <a href="https://stackoverflow.com/questions/741414/insert-update-trigger-how-to-determine-if-insert-or-update">Insert Update trigger how to determine if insert or update</a></p>
  
  <hr>
  
  <p>Edit:
  Is it possible to create also one trigger for more than one table?</p>