标签: sql-server
我的表事务中有5列
Debit, Credit, Rate, CompanyDebit, CompanyCredit
问题: 如何为CompanyDebit&添加默认值? CompanyCredit使用以下公式:
CompanyDebit
CompanyCredit
CompanyDebit = debit * rate CompanyCredit = credit * rate