How to convert SQLite trigger variables OLD/NEW to TEXT or if possible a JSON object?
I want to log every changes to another table.
This is not possible.
OLD and NEW are not "trigger variables"; they are keywords that can be used in column references, such as OLD.columnname.
If you want to log changes of the column values, you have to write out all the columns of the table in each trigger.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With