I want to create a trigger which will prevent update in a row from that table if that entry is present in another table too.
example
Table M
m_id title
1 abc
2 def
3 ghi
Table N
n_id m_id
1 2
2 3
so if try to update values 2 or 3 in table m it shouldn't allow that whereas if i try to update value 1 from table it should do so.