〔SQL〕一次重新設定流水序號 / UPDATE ROW_NUMBER() Scenic 13:32 No comments 範例:執行將依據指定排序條件,將特定欄位重設流水序號 WITH UT as (SELECT SCode, L, ROW_NUMBER() OVER (ORDER BY SCODE) as RN FROM SP03 WHERE sp02_scode=100) UPDATE UT SET L=RN 以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook
0 意見:
張貼留言