我如何维持客户账户的平衡 [英] How Am I Maintain Balance Of Client's Account

查看:73
本文介绍了我如何维持客户账户的平衡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



我正在设计一个数据库,但我很困惑,我怎么能管理特定人的平衡。



哪种方式最适合数据库或代码中的管理余额,我该怎么做?

dear all,

i'm designing one databse but i'm confused in one thing that how can i manage balance of perticular person.

which way is best for manage balance in database or in code and how can i do this?

推荐答案

值余额通常来自信贷和借记等项目。然后应该通过动态计算使用代码获得它。您只需要维持信用和借记,而不是保持平衡。换句话说,不要在数据库中存储余额。
The value of balance is usually derivable from such items like credit and debit. It should then be obtained through calculation using code dynamically. You only need to maintain credit and debit, not balance. In other words, do not store balance in the database.


这篇关于我如何维持客户账户的平衡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆