以下是引用CHB123在2013-10-1 11:10:58的发言:
字段名中不存在前导"0",是X1不是X001.
也还要注意清除前后的空格。
字段名中不存在前导"0",是X1不是X001.

活到老,学到老! http://www. E-mail:hu-jj@
REPLACE ALL Y4 WITH NVL(ICASE(EMPTY(X6) AND NOT EMPTY(X5) AND NOT EMPTY(Y1),X5,EMPTY(X5),X4,NOT EMPTY(X6) AND NOT EMPTY(X5),X4,EMPTY(Y1) AND EMPTY(Y2),X3),[]) REPLACE ALL Y5 WITH NVL(ICASE(NOT EMPTY(X6),X5,EMPTY(Y1) AND EMPTY(Y2),X4),[]) REPLACE ALL Y6 WITH NVL(ICASE(EMPTY(Y1) AND EMPTY(Y2),X5,X6),[])上面的代码是X4,X5,X6字段内容的纠错代码。这也是没有办法的办法。
REPLACE ALL Y4 WITH NVL(ICASE(EMPTY(X6) AND NOT EMPTY(X5) AND NOT EMPTY(Y1),X5,EMPTY(X5) AND NOT EMPTY(X4),X4,NOT EMPTY(X6) AND NOT EMPTY(X5),X4,EMPTY(Y1) AND EMPTY(Y2),X3,EMPTY(X4) AND NOT EMPTY(X3) AND X3>'1730',X3),[])更改Y4字段代码