CREATE CURSOR 表A (bmh C(10), xm C(10), yw I, sx I)
INSERT INTO 表A VALUES ("101", "张三", 0, 0)
INSERT INTO 表A VALUES ("102", "李四", 0, 0)
INSERT INTO 表A VALUES ("103", "王五", 0, 0)
CREATE CURSOR 表B (bmh C(10), yw I, sx I)
INSERT INTO 表B VALUES ("103", 50, 60)
INSERT INTO 表B VALUES ("102", 70, 80)
INSERT INTO 表B VALUES ("101", 90, 100)
SELECT 表A
INDEX on bmh TAG a_bmh
SELECT 表B
SET RELATION TO bmh INTO "表A"
REPLACE 表A.yw WITH 表B.yw, 表A.sx WITH 表B.sx ALL
SELECT 表A
BROWSE