我正在使用SQL语句在excel中插入一些日期。但出现错误。
我尝试过
INSERT INTO Sheet1$ (Contribution Month, Serial, Name, Contributions Type, Amount, Status)
VALUES (01/09/2018, 353660, BRUIN NOEL, Employer, -694.58, open)
INSERT INTO Sheet1 (Contribution Month, Serial, Name, Contributions Type, Amount, Status)
VALUES (01/09/2018, 353660, BRUIN NOEL, Employer, -694.58, open)
INSERT INTO Sheet1$ (Contribution Month, Serial, Name, Contributions Type, Amount, Status)
VALUES ('01/09/2018', '353660', 'BRUIN NOEL', 'Employer', '-694.58', 'open')
INSERT INTO Sheet1 (Contribution Month, Serial, Name, Contributions Type, Amount, Status)
VALUES ('01/09/2018', '353660', 'BRUIN NOEL', 'Employer', '-694.58', 'open')
有更正吗?
答案 0 :(得分:0)
尝试以下代码:
INSERT INTO [Sheet1$] ([Contribution Month], [Serial], [Name], [Contributions Type], [Amount], [Status])
VALUES ('01/09/2018', 353660, 'BRUIN NOEL', 'Employer', -694.58, 'open')
缺少一些字符。对于工作表名称[]
,字段名称[]
及其''
字符串值。