access中的数据使用代码导入excel中是每一条数据前都会多一个引号 '
就这句导入倒码:
sql = @"select * into [Excel 8.0;database=" + xslpath + "].[Sheet1] from Sheet1"; cmd = new OleDbCommand(sql, cn);
cmd.ExecuteNonQuery();
请问是什么原因?????
就这句导入倒码:
sql = @"select * into [Excel 8.0;database=" + xslpath + "].[Sheet1] from Sheet1"; cmd = new OleDbCommand(sql, cn);
cmd.ExecuteNonQuery();
请问是什么原因?????
这说明你ACCESS中的表的字段就是字符型的