SQL delete command?

后端 未结 7 2222
日久生厌
日久生厌 2020-12-18 02:34

I am having trouble with a simple DELETE statement in SQL with unexpected results , it seems to add the word to the list??. Must be something silly!. but i cannot see it , t

相关标签:
7条回答
  • 2020-12-18 03:27

    To debug this, examine the CommandText on the SqlCommand object. Before reading further, you should try this.

    The issue comes with adding the single quotes around a string that is parameterized. Remove the single quotes and life is beautiful. :-)

    Oh, and your conn is an object and needs a comma, not a +.

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