我正在尝试使用"使用 x;" 函数重命名表中的字段,但我遇到了一些奇怪的行为,我想知道是否有人可以解释为什么会发生这种情况以及如何最好地避免它?
请参阅下面的代码,您可以看到它不会重命名列"BLAH",但是为什么呢?
t_1:
mapping load * inline [
Orig, New
CUSTNO, CustomerNumber
BLAH, CustomerNumber
];
test:
Load * inline [
CUSTNO, Name
1234, James
];
test2:
Load * inline [
BLAH, Name2
1235, Chris
];
RENAME FIELDS using t_1;
这就是
Rename Fields using X
的工作方式。
以下内容来自 QV 帮助: Two differently named fields cannot be renamed to having the same name. The script will run without errors, but the second field will not be renamed.