再求帮忙,先谢谢!
有一表tb,字段为xh(n,4)、xm(c,8),有若干行记录,现在想把1-15个数字从小到大依次从第一行开始赋给xh,把‘昨天、今天、明天’依次赋给xm,如附件图示
赋值给字段.rar
(18.52 KB)
,请教代码怎么写?[此贴子已经被作者于2022-7-7 15:50编辑过]
CREATE CURSOR tt (xh n(2), xm c(4)) FOR ln1 = 1 TO 2 FOR ln2 = 1 TO 15 INSERT INTO tt VALUES (ln2, "") ENDFOR ENDFOR INSERT INTO tt VALUES (1, "") INSERT INTO tt VALUES (2, "") REPLACE xm WITH ICASE(xh%3 = 1, "昨天", xh%3 = 2, "今天", "明天") ALL BROWSE