1
我收到錯誤:無法插入到數據庫
Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near the keyword '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");
}