我在 sqlldr 加载的控制文件中创建条件语句时遇到问题。出于某种原因,当我尝试说当 article_length<50 时,它会给出错误“非法使用非字母数字字符。如果我将 '<' 更改为 '=',它会将错误更改为查找带引号的字符串或十六进制,发现“50”我做错了什么?
LOAD DATA
INFILE h3.csv
insert
INTO Table H3_Authors_temp
fields terminated by ','
OPTIONALLY ENCLOSED BY '"' AND '"'
(
Author_ID,field1 FILLER, First_Name, Last_Name,Gender,Email
)
into table H3_fiction_short when ARTICLE_LENGTH < 50 AND ARTICLE_TYPE="fiction"
(
AUTHOR_ID INTEGER, field1 FILLER varchar(30), FIRST_NAME FILLER varchar(30), LAST_NAME FILLER varchar(30), GENDER FILLER varchar(30),
Email FILLER varchar(30), Issue_Num INTEGER, ARTICLE_TYPE Filler varchar(30), ARTICLE_NAME, ARTICLE_LENGTH INTEGER,
PAYMENT_RATE FLOAT, DATE_SUBMITTED DATE
)