在关键字 'FROM' 附近有语法错误。
conn.Open();SqlCommandcmd1=newSqlCommand("updatesendwaysetway='"+dpsendway.SelectedVa...
conn.Open();
SqlCommand cmd1 = new SqlCommand("update sendway set way='" + dpsendway.SelectedValue + "',fee='" + fee + "' where sendwayid='" + Session["sendwayid"].ToString() + "' FROM sendway INNER JOIN g_order ON sendway.sendwayID = g_order.sendwayid ", conn);
cmd1.ExecuteNonQuery();
conn.Close(); 展开
SqlCommand cmd1 = new SqlCommand("update sendway set way='" + dpsendway.SelectedValue + "',fee='" + fee + "' where sendwayid='" + Session["sendwayid"].ToString() + "' FROM sendway INNER JOIN g_order ON sendway.sendwayID = g_order.sendwayid ", conn);
cmd1.ExecuteNonQuery();
conn.Close(); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询