两表快速替换的求助
CREATE CURSOR t1 (f1 C(5), f2 C(5), f3 I)INSERT INTO t1 VALUES ('9', '2', 0)
INSERT INTO t1 VALUES ('9', '2', 0)
INSERT INTO t1 VALUES ('2', '1', 0)
INSERT INTO t1 VALUES ('9', '2', 10)
INDEX on f1+f2 TAG f1f2
CREATE CURSOR t2 (f1 C(5), f2 C(5), f3 I)
INSERT INTO t2 VALUES ('1', '2', 1)
INSERT INTO t2 VALUES ('2', '2', 2)
INSERT INTO t2 VALUES ('3', '2', 2)
INSERT INTO t2 VALUES ('9', '2', 3)
SELECT t2
SET RELATION TO f1+f2 INTO "t1"
REPLACE t1.f3 WITH t2.f3 ALL FOR t1.f3=0
SELECT t1
BROWSE
请问老师,上面语句只替换了第一个满足条件的记录,如果要替换全部满足条件的记录,需要怎样修改?
[此贴子已经被作者于2017-9-13 23:40编辑过]