在我的解决方案中,我有一个本地数据库和一个带GetQuery功能的数据库连接类。此函数工作正常,但由于某种原因,它不会处理查询,如下所示。当我运行像SELECT * FROM logs
之类的查询时,一切正常,但当我尝试使用此查询时
SELECT klantnr AS 'Klantnummer',
klantnaam AS 'Klantnaam',
vraag AS 'Vraag/probleem',
informatie AS 'Informatie/uitvoering',
antwoord AS 'Antwoord/oplossing',
datum AS 'Datum',
tijd AS 'Tijd'
FROM logs
我收到以下错误消息:There was an error parsing the query. [ Token line number = 1,Token line offset = 21,Token in error = Klantnummer ]
答案 0 :(得分:5)
请试试这个:
SELECT klantnr AS [Klantnummer],
klantnaam AS [Klantnaam],
vraag AS [Vraag/probleem],
informatie AS [Informatie/uitvoering],
antwoord AS [Antwoord/oplossing],
datum AS [Datum],
tijd AS [Tijd]
FROM logs