Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须创建一个特定的评论系统,我应该在查询中做很多 AVG,所以我想问是否可以在 SQL 中创建一个表,在其中自动更新这些平均值?
mysql 5.5.24-0ubuntu0.12.04.1
是的,有两种方法可以做到这一点: