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.
我想在用户表中保存用户余额。余额从其他表行计算,
在另一张桌子上触发是最好的方法吗?
还是用 php 之类的脚本语言来做?
重要的是要准确和性能。
谢谢
我会在视图中执行此操作,因为这样您始终知道在检索数据时它是最新的。