mysql - Automatically update occurrences in another table

前端 未结 2 571
你的背包
你的背包 2021-01-17 05:16

I have two tables, one for storing reports of a user, and another for storing users.

1. Report_table
-----report_id(P)-----user_id--------
        001               


        
2条回答
  •  死守一世寂寞
    2021-01-17 05:47

    You can deal with TRIGGER by using a AFTER INSERT trigger

    http://dev.mysql.com/doc/refman/5.0/en/triggers.html

提交回复
热议问题