其中coulmn标题有空格如何修剪空格然后读取标题........... 我的coulns标题看起来像这样
loan number customer name customer mobile no.......................
我试过这句话
OleDbCommand odc = new OleDbCommand(string.Format("Select Loan number,Customer name,mobile no,Sanction Date FROM [BAJAJ DUMP$]"), conn);
我在阅读这些错误时发现此错误
Syntax error (missing operator) in query expression 'Sanction Date'.
答案 0 :(得分:1)
尝试:
Select [Loan number],[Customer name],[mobile no],[Sanction Date] FROM [BAJAJ DUMP$]