如何在Excel中插入数据如果列名包含'#'在c#
我能够成功地使用c#
将值插入到我的Excel文件中。
但是,当我的列名包含“#”(例如Target_Group#
),我得到这个错误:
未知的列名称
但在我的Excel列名应该是“Target_Group#”
我的插入查询是:
string query = "INSERT INTO [Sheet2$] ([Target_Group#]) VALUES('OHMCRWP0')";
我正在使用OLEDB connections