各位大神我有这样一个需求,我有一个数据表,假设里面有a, b两个字段,b字段的值会经常变化,a字段的值=a字段的值+b字段的值。每次b字段的值变化一次就加一次。如何实现这样的需求 ,最好有代码哦~~谢谢!
回复讨论(解决方案)
感觉用数据库的触发器更好用吧。
mysql有??器,你可以使用mysql的??器???你的功能,不需要?一行php代?
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn