strExcel = "select * from [Input Data Form$] "; -- 这句话,在我本机和服务器上运行都没有问题.
但是strExcel = "select * from [Input Data Form$] where [Product Type] <> ''"; 加上了 where 后,在我本机运行没问题,在服务器上运行有问题,请各位大侠出手相助,说下可能是问题.
谢谢了~~
...全文
465打赏收藏
excel导入sql出现错误
strExcel = "select * from [Input Data Form$] "; -- 这句话,在我本机和服务器上运行都没有问题. 但是strExcel = "select * from [Input Data Form$] where [Product Type] ''"; 加上了 where 后,在我本机运行没问题,在服务器上运行有问题,请各位大侠出手相助,说下可能是问题. 谢谢了~~
[Quote=引用 1 楼 sql77 的回复:]
strExcel = "select * from [Input Data Form$] where ISNULL([Product Type],'') <> ''";
应该有NULL值吧
[/Quote]试过你说的了,还是不行.如果像你说的,那应该我本机运行也会出错才对呀~~
thank you all the same!