Skip to main content
1 of 5

MySQL on insert in table update field in another table?

I'm creating one PHP script and I need to update table Topics when someone insert something in table TopicAnswers.

Is there any SQL query to do something like this, for example something as FOREIGN KEY?