只有yll和hgl是字符型的
SELECT SUM(VAL(yll)) yll,SUM(VAL(hgl)) hgl FROM gktj INTO CURSOR xxx
INSERT INTO gktj (yll,hgl) SELECT TRANSFORM(yll),TRANSFORM(hgl) FROM xxx
select gktj
brow
SELECT SUM(VAL(yll)) yll,SUM(VAL(hgl)) hgl FROM gktj INTO CURSOR xxx
INSERT INTO gktj (yll,hgl) SELECT TRANSFORM(yll),TRANSFORM(hgl) FROM xxx
select gktj
brow