Question for SQL statment# Database - 数据库
x*g
1 楼
table purchase_order(po_id,user)
table purchase_order_item(po_id,poi_id,item_id,number)
table stock(item_id,number_in_stock)
how to update the stock table to deduct the number_in_stock for a
purchase_order? (with one statment)
thanks
and which book or document is the best to learn SQL about these matters?
table purchase_order_item(po_id,poi_id,item_id,number)
table stock(item_id,number_in_stock)
how to update the stock table to deduct the number_in_stock for a
purchase_order? (with one statment)
thanks
and which book or document is the best to learn SQL about these matters?