大概意思是:我先得到一个订单的orderID,根据这个orderID可以在V_order_detail中查到这个订单下的所有书的goodsID和订购数量number,然后要去tb_goods表里面找到对应的goodsID下的数量Amount,减去相应的number值,对数据库进行的是update操作下面这样写不对,该怎么写?int ID=Integer.parseInt(request.getParameter("ID"));String sql ="update b set b.Amount= b.Amount- (select number from V_order_detail a1, tb_goods b1  where a1.goodsID = (SELECT goodsID from V_order_detail  a, tb_goods  b  where b.ID in (select ID goodsID  from a  where a.orderID = ID))";