****************关于中英文对照的问题?存储过程怎么实现????????????
数据库:(分别为英文表名称、中文表名称、英文字段、中文字段)其中都没有重复值
ENBMC CNBMC ENZD CNZD
A001 人员表 C0001 年龄
A001 人员表 C0002 出生日期
A002 学历表 C0003 学历
A003 工资表 C0004 技能等级
A003 工资表 C0005 技能工资
A004 奖金表 C0006 奖金指数
A004 奖金表 C0007 综合奖
A004 奖金表 C0008 节日奖
....
请问用存储过程怎么实现将:
~人员表.年龄~ := year(Getdate()) - year(~人员表.出生日期~)
if ~工资表.技能等级~ = '15' ~工资表.技能工资~ := 258 endif
if ~工资表.技能等级~ = '16' ~工资表.技能工资~ := 280 endif
if ~工资表.技能等级~ = '17' ~工资表.技能工资~ := 298 endif
if ~工资表.技能等级~ = '18' ~工资表.技能工资~ := 310 endif
if ~工资表.技能等级~ = '19' ~工资表.技能工资~ := 325 endif
...(还有好多1-42级)
~奖金表.综合奖~ := ~奖金表.奖金指数~ * 1000
转变为:
A001.C0001 := year(Getdate) - year(A001.C0002)
if A003.C0004 = '15' A003.C0005 := 258 endif
if A003.C0004 = '16' A003.C0005 := 280 endif
if A003.C0004 = '17' A003.C0005 := 298 endif
if A003.C0004 = '18' A003.C0005 := 310 endif
if A003.C0004 = '19' A003.C0005 := 325 endif
....(还有好多1-42级)
A004.C0007 := A004.C0006 * 1000
又怎么用存储过程转变为:
update A001 set A001.C0001 = year(Getdate()) - year(A001.C0002)
update A003 set A003.C0005 = 258 where A003.C0004 = '15'
update A003 set A003.C0005 = 280 where A003.C0004 = '16'
update A003 set A003.C0005 = 298 where A003.C0004 = '17'
update A003 set A003.C0005 = 310 where A003.C0004 = '18'
update A003 set A003.C0005 = 325 where A003.C0004 = '19'
....(还有好多1-42级)
update A004 set A004.C0007 = A004.C0006 * 1000
急!谢谢!