The example program goes through the items table to fulfill orders from the stock table.
示例程序遍历 items 表,从 stock 表履行订单。
If the available quantity from the stock table for the requested item is less than the quantity ordered, the transaction rolls back to the neworder savepoint.
如果所请求商品在stock表中的可用数量小于订购的数量,那么事务将回滚到neworder保存点。
应用推荐