Jika Anda mencoba UPDATE kolom secara langsung menggunakan ROW_NUMBER(), Anda akan mendapatkan...
...jadi INNER JOIN tabel itu sendiri...
UPDATE
[test123]
SET
[row_number] = [x].[rn]
FROM
[test123]
INNER JOIN
(
SELECT
[test_id],
ROW_NUMBER() OVER (ORDER BY [test_id]) AS rn
FROM
[test123]
) AS x
ON
[test123].[test_id] = [x].[test_id]