How to duplicate INSERTS into a seperate table?

Posted by Ash on Stack Overflow See other posts from Stack Overflow or by Ash
Published on 2011-06-27T06:14:59Z Indexed on 2011/06/27 8:22 UTC
Read the original article Hit count: 222

An iPhone application I have installed uses an SQLite database to log entries with basic INSERTS and DELETES being performed on it.

However I wish to keep a permanent log of the INSERTS made to this table, so when an INSERT occurs, I want it to be written to another table also as to create a log.

I don't have access to the application source code in order to modify the SQL statements made, I do have access to the SQLite database.

Can I do this with triggers? If so can somebody provide a short example.

© Stack Overflow or respective owner

Related posts about database

Related posts about sqlite