i have a table named tblcustomfieldsvalues where i want to create a trigger for updating a row in the same table, this is the table : Table screenshot
The goal is to create conditions like this :
- if the corresponding value = 'some car' where relid=relid and fieldid=11, the updated row will bi id=1
- if the corresponding value = 'another car' where relid=relid and fieldid=11, the updated row will bi id=4 and so on...
I even tried to create a temporary table but i always have the error like ( infinite loop )...