Case scenario :
Database : sample_db
Table's : table_1 ,table_2 , table_3 , table_4
All the table's has column row_id
I want to create sql queries log if there is any row insert/update/delete for row_id = 'some_value'
for table_1
and table_3
for a sample_db
Edits
:
Sample Example :
Let say there is a database school_db , which has following tables:
a.school. [school_id,school_name]
b.class. [school_id,class_id,class_name]
c.section. [school_id,class_id,section_id,section_name]
d.marks. [school_id,student_id,marks]
e.exams. [school_id,class_id,exam_id,exam_name]
Now for a particular school's , let's say 'ABC school' which has school_id = 10 .
I want to log all the sql queries that are run for 'ABC school' for tables school,marks and exams.