我知道,这个问题已经讨论了很多,但我没有找到如何这样做的解决办法。
我需要的是向我的数据库表输入一个Excel文档(xls/xlsx)。 它是个县,所执行的指挥机关是:
string cmdText = "LOAD DATA INFILE importTest4MoreMore.csv INTO TABLE management FIELDS TERMINATED BY , ;";
It works great. But I need to import excel file not CSV. As far as I know LOAD DATA command does not support binary files which xls is. So what s the solution to that? Please help
非常感谢