头痛中,求教。用sele语句将多表合并后,出现的库结构改变的问题
有t1-t6为1-6月工资表,结构为:bh(编号),gz(工资)
sele bh,gz as gz1,0 as gz2,0 as gz3,0 as gz4,0 as gz5,0 as gz6 from t1 union ;
sele bh,0 as gz1,gz as gz2,0 as gz3,0 as gz4,0 as gz5,0 as gz6 from t2 union ;
...
sele bh,0 as gz1,0 as gz2,0 as gz3,0 as gz4,0 as gz5,gz as gz6 from t6 into cursor tmp1
sele bh,sum(gz1),...,sum(gz6) from tmp1 group by bh into table tt
采用以上办法合并后,出现了一个新问题。合并后生成的tt.dbf中,库格式,除了gz1还保持了数值型,4,小数位数1外,其他的都变了。而且gz2,gz3...gz6都变成了“********”。而且没有小数。
请各位老师给予指点。头痛中!!