SQL插入一行数据
SQL Insert Row of Data
请指教!新 SQL...
QL Error: ORA-01861: literal does not match format string
- 00000 - "literal does not match format string"
*Cause: Literals in the input must be the same length as literals in
the format string (with the exception of leading whitespace). If the
"FX" modifier has been toggled on, the literal must match exactly,
with no extra whitespace.
*Action: Correct the format string to match the literal.
INSERT INTO STUDENT (Marticulationno, studentname, homeaddress, dob, sex, studentcategory, nationality, smoker, specialneeds, comments, enrollmentstatus, courses)
VALUES ('1', 'Lemeuel Im', '101 Main Street TX 77070', '19800101', 'M', 'graduate', 'hindu', '0', 'na', 'none', 'enrolled', 'economics');
如错误所述。您没有足够的值要插入。
我认为其中一个 smoker, specialneeds, comments
没有价值
将其从查询中删除或为该字段添加一个值。
Marticulationno -> '1'
studentname -> 'Lemeuel Im'
homeaddress -> '101 Main Street TX 77070'
dob -> '19800101'
sex -> 'M'
studentcategory -> 'graduate'
nationality -> 'hindu'
smoker -> '0'
specialneeds -> 'na'
comments -> 'enrolled'
enrollmentstatus -> 'economics'
courses ->
这是您目前拥有的。您缺少 1 个值。
请指教!新 SQL...
QL Error: ORA-01861: literal does not match format string
- 00000 - "literal does not match format string"
*Cause: Literals in the input must be the same length as literals in the format string (with the exception of leading whitespace). If the "FX" modifier has been toggled on, the literal must match exactly, with no extra whitespace.
*Action: Correct the format string to match the literal.
INSERT INTO STUDENT (Marticulationno, studentname, homeaddress, dob, sex, studentcategory, nationality, smoker, specialneeds, comments, enrollmentstatus, courses)
VALUES ('1', 'Lemeuel Im', '101 Main Street TX 77070', '19800101', 'M', 'graduate', 'hindu', '0', 'na', 'none', 'enrolled', 'economics');
如错误所述。您没有足够的值要插入。
我认为其中一个 smoker, specialneeds, comments
没有价值
将其从查询中删除或为该字段添加一个值。
Marticulationno -> '1'
studentname -> 'Lemeuel Im'
homeaddress -> '101 Main Street TX 77070'
dob -> '19800101'
sex -> 'M'
studentcategory -> 'graduate'
nationality -> 'hindu'
smoker -> '0'
specialneeds -> 'na'
comments -> 'enrolled'
enrollmentstatus -> 'economics'
courses ->
这是您目前拥有的。您缺少 1 个值。