REPLACE ALL 使用变量问题
程序代码:
create cursor b1 (m c(3),m1 c(3)) insert into b1 values ("012","") insert into b1 values ("10","") insert into b1 values ("011","") insert into b1 values ("201","") insert into b1 values ("2","") REPLACE ALL m1 WITH IIF(LEFT(ALLTRIM(m),1)=='0',"M1","") brow
统计正确
如果使用:
kk=LEFT(ALLTRIM(m),1)
REPLACE ALL m1 WITH IIF(kk=='0',"M1","")
表达式全为假
应怎样使用变量?谢谢!