MariaDB社区
标题:
mysql计算列
[打印本页]
作者:
chen138
时间:
2009-11-28 00:22
标题:
mysql计算列
mysql数据表有:固定工作、奖金、额外金、扣除、应发工资等字段。怎么在表格实现:应发工资=固定工资+奖金+额外金-扣除
mysql table pwages(id char(4),name char(8),Fixed_wage decimal(8,2),bonus decimal(8,2),Other_add decimal(8,2),Other_cut decimal(8,2),total_wages decimal(8,2));
total_wages=Fixed_wage + bonus + Other_add - Other_cut 怎么在表添加?
作者:
kider
时间:
2009-12-22 15:12
添加什么?
可以考虑用视图试试
欢迎光临 MariaDB社区 (http://123.56.88.72/)
Powered by Discuz! X3.2