{"'(' 附近有语法错误."}
SqlConnectioncon=DB.GetCon();//连接数据库con.Open();stringstr=string.Format("insertintodgd...
SqlConnection con = DB.GetCon();//连接数据库
con.Open();
string str =string.Format( "insert into dgd(物料编码,规格,数量,单位,单价,金额,交期,备注,供应商,电话,传真,地址,成交方式,接受人,发单人,下单日期)values ('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "','" + value6 + "','" + value7 + "','" + value8 + "','" + value10 + "','" + value11 + "','" + value12 + "','" + value13 + "','" + value14 + "','" + value15 + "','" + value16 + "','" + value17 + "')");
SqlCommand cmd = new SqlCommand(str, con);
Response.Write("信息录入完成!");
cmd.ExecuteNonQuery();
con.Close(); 展开
con.Open();
string str =string.Format( "insert into dgd(物料编码,规格,数量,单位,单价,金额,交期,备注,供应商,电话,传真,地址,成交方式,接受人,发单人,下单日期)values ('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "','" + value6 + "','" + value7 + "','" + value8 + "','" + value10 + "','" + value11 + "','" + value12 + "','" + value13 + "','" + value14 + "','" + value15 + "','" + value16 + "','" + value17 + "')");
SqlCommand cmd = new SqlCommand(str, con);
Response.Write("信息录入完成!");
cmd.ExecuteNonQuery();
con.Close(); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询