我收到错误消息:
异常详细信息:System.Data.SqlClient.SqlException:关键字“desc”附近的语法不正确。
任何人都可以帮我解决问题吗?
if (IsPost && Validation.IsValid())
{
name = Request.Form["name"];
price = Request.Form["price"];
desc = Request.Form["desc"];
var db = Database.Open("mystring");
var insertCommand = "INSERT INTO CarBike (name,image,price,desc,date,userid) VALUES(@0,@1,@2,@3,@4,@5)";
db.Execute(insertCommand, name, image, price, desc, date, userid);
Response.Redirect("~/Members");
}