想要update順序按照order by的條件

要求:更新採購申請明細行的行號row_id字段,按照單據分組,明細行id排序,讓row_id從1開始更新函數   update scm_dem_purchase_req_dtl_tbl      set row_id = rownum    where bill_id =139505    order by id; 排序 --這樣寫報錯,應爲update與order by 不能一塊兒使用,作一下的
相關文章
相關標籤/搜索