把上面的语句写完整试试看,即:
update prod_type as p,order_temp as pd set p.prod_num=(p.prod_num-pd.shuliang) where p.type_id=pd.type_id and pd.rand_id='27';