SQL INSERT - Invalid column name

前端 未结 6 1980
执念已碎
执念已碎 2021-01-22 16:34

As some of you may of seen from my previous post I\'m new to using C# to create websites (Although I have a fair bit of experience using it for Windows Forms apps). The powers t

6条回答
  •  别那么骄傲
    2021-01-22 17:06

    your SQL is bad formatted. Try this :

    string sqlcode = "INSERT INTO file_uploads (upload_filename) VALUES ('"+filename+"')";
    

    Where upload_filename is a name of the column

提交回复
热议问题