There was an error parsing the query. [ Token line number = 1,Token line offset = 40,Token in error = First]

后端 未结 1 1336
青春惊慌失措
青春惊慌失措 2021-01-29 10:47

i am doing Csharp with sql. but i am getting error as

There was an error parsing the query. [ Token line number = 1,Token line offset = 40,Token in error = First]

相关标签:
1条回答
  • 2021-01-29 11:27

    If you have a white-space in your column name(s) you need to use square brackets.Use [First Name] instead of First Name and [Account Manager] instead of Account Manager.If you are inserting a value to all of your columns then you don't need to specify column names.

    Also you should consider using parameterized queries to prevent SQL Injection attacks.

    0 讨论(0)
提交回复
热议问题