Executing an SQL statement in C#?

前端 未结 5 702
醉话见心
醉话见心 2021-01-07 09:17

Hey guys i want to execute my SQL statement but im having synatx trouble, can someone help me understand what i doin wrong please?

Thanks, Ash.

publi         


        
5条回答
  •  囚心锁ツ
    2021-01-07 10:13

    Try this (and you should try running the SQL from outside your application):

    string sSQL = "INSERT INTO WordDef (Word, Good, Bad, Remove) VALUES ('" + WordArray[WordCount] + "', " + Good + ", " + Bad + ", " + Remove + ");";
    

提交回复
热议问题