Getting syntax error in INSERT INTO statement

前端 未结 1 1219
-上瘾入骨i
-上瘾入骨i 2020-12-04 03:55

So I\'m receiving this problem, I tried everything. Kinda stuck

My access database design:

ID - AutoNumber
Data - ShortText

And the

相关标签:
1条回答
  • 2020-12-04 04:43

    The TABLE is a reserved keyword so you should change it's name or you should enclose it in square brackets like [Table]:

    string sql = "INSERT INTO [Table] (Data) VALUES (@Data)";
    
    0 讨论(0)
提交回复
热议问题