如何修剪列标题之间的空格?

时间:2012-01-12 07:50:45

标签: asp.net c#-4.0

其中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'.

1 个答案:

答案 0 :(得分:1)

尝试:
Select [Loan number],[Customer name],[mobile no],[Sanction Date] FROM [BAJAJ DUMP$]