给定一组数据并尝试将所有行插入表中,似乎 c-treeACE 向我抛出了一条错误消息,说它是一个语法错误并突出显示这里的邮政编码是一个例子:这是脚本:
INSERT INTO testdata VALUES
('1ZE83A545192635139','2018-06-19 00:00:00','MID-ATLANTIC SETTLEMENT SERVICES','10 NORTH PARK DRIVE','SUITE 100',NULL,'HUNT VALLEY','MO ',210301876),
('1Z88Y9147852827763','2018-06-19 00:00:00','PROMETRIC - DISTRIBUTION','7941 CORPORATE DR',NULL,NULL,'NOTTINGHAM','ND ',212364925),
('1Z88F3X58790349173','2018-06-19 00:00:00','STEPH YEAG','11333 MCCORMICK RD','MD5-031-05-04',NULL,'HUNT VALLEY','HG ',21081),
('1Z5654132394463912','2018-06-19 00:00:00','KIMB RE','6384 BLAIR HILL LN','PO BOX 10487',NULL,'BALTIMORE','JK ',21209);
('1Z9Y53832934210246','2018-06-19 00:00:00','Crys random','4 BUCHANAN RD',NULL,NULL,'BALTIMORE','KL ',21212);
以上是我在 C-tree 中运行的脚本,它说语法错误在第一个条目之后
('1ZE83A500789635139','2018-06-19 00:00:00','MID-ATLANTIC SETTLEMENT SERVICES','10 NORTH PARK DRIVE','SUITE 100',NULL,'HUNT VALLEY','MO ',**210301876),** <---- this where the error highlights.
我假设在 ctree 中它一次只能读取一个,因为它工作的时候就是我一次输入一个条目的时候。请注意,我正在从 csv 文件中获取这些数据,但我不知道如何从 csv 文件中读取数据并导入到 ctreeACE 中,除非有人知道如何做到这一点,否则我会全神贯注,这将为我节省很多时间!