我正在尝试使用sql loader从csv文件加载数据。由于某种原因计数始终为0,我在计数方面遇到问题。
数据:
Market yield on U.S. Treasury securities at 1-month constant maturity
Market yield on U.S. Treasury securities at 2-month constant maturity
Market yield on U.S. Treasury securities at 3-month constant maturity
...
控制文件:
OPTIONS()
LOAD DATA
INFILE 'first.csv'
REPLACE
INTO TABLE US_FI_LOOKUP
TRAILING NULLCOLS
(
lang_code constant "en",
name terminated by '\n',
id "(select count(*)+1 from US_FI_LOOKUP)"
)