执行期间发生致命错误(MySQL批量加载)

时间:2017-10-11 23:58:41

标签: mysql .net vb.net

这个简单的代码会返回一个致命的执行错误',但直接在MySQL中执行时,相同的查询运行完全正常

SQL = "LOAD DATA INFILE 'D:\\Shared\\Berlin Stock Exchange\\0002.BE#CLP HOLDINGS ORD (M).csv'  INTO TABLE prices FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n'  IGNORE 1 LINES  (@col1,@col2,@col3,@col4,@col5,@col6,@col7,@col8) SET `symbol`=@col1,`int`=@col2,`date`=STR_TO_DATE(@col3,'%m/%d/%Y %h:%i:%s %p'), `close`=@col7;"
cmd = New MySqlCommand(SQL, conn)
cmd.CommandTimeout = 0
cmd.ExecuteNonQuery()                

我在这里缺少什么?

谢谢!

0 个答案:

没有答案