c#的insert的语句谁来帮我看看问题在哪里?
stringcmdInsertText="InsertintoHireFilm"+"(FilmID,BorrowDate,CurrentCount,CustomerID)...
string cmdInsertText = "Insert into HireFilm"
+"(FilmID,BorrowDate,CurrentCount,CustomerID)"
+"values('" + filmid +"',getdate(),"
+ "" +Convert.ToInt32(textBox2.Text)+",'" + cumID +
"')";
报错:输入格式不对 展开
+"(FilmID,BorrowDate,CurrentCount,CustomerID)"
+"values('" + filmid +"',getdate(),"
+ "" +Convert.ToInt32(textBox2.Text)+",'" + cumID +
"')";
报错:输入格式不对 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询