如何在asp.net c#代码后面编写这段代码?
我要做的是选择invoicetable
中orderno
的所有行,其中session
等于当前inventorytable
,并从中删除SqlCommand cmd =
new SqlCommand("UPDATE inventorytable
JOIN invoicetable ON inventorytable.ItemID = invoicetable.ItemID
SET inventorytable.inventory = inventorytable.inventory-invoice.QTY
WHERE invoicetable.No='" + Convert.ToInt32(Session["invoiceno"]) + "'"
, con);
InsertUpdateData(cmd);
的库存。与itemid的匹配的invoicetable数量。
{{1}}