Posted on
2014-07-17 10:58不懂就问啊
阅读(340)
评论(0)
编辑收藏举报
UPDATE CBS_APP_IM_INSPECTBODY A SET A.G_NO=(SELECT ROW_NUM FROM (SELECT ROWNUM ROW_NUM,B.CODE FROM CBS_APP_IM_INSPECTBODY B WHERE B.FCODE='" + hidCode.Value + "'ORDERBY B.G_NO DESC) C WHERE C.CODE=A.CODE) WHERE A.FCODE='" + hidCode.Value + "'