"RENAME FIELDS Using xMap",在多个领域
"RENAME FIELDS Using xMap", on multiple fields
我正在尝试使用 "RENAME FIELDS using 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.
我正在尝试使用 "RENAME FIELDS using 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.