Kita dapat membuat kode incremental tersebut dengan cara :
DECLARE @count AS INT
SET @count = 1
WHILE @count <= 10
BEGIN
SELECT 'A' + REPLACE(Str(@count, 4), ' ', '0')
SET @count = @count + 1
END
Life is not just for today
DECLARE @count AS INT
SET @count = 1
WHILE @count <= 10
BEGIN
SELECT 'A' + REPLACE(Str(@count, 4), ' ', '0')
SET @count = @count + 1
END
Tidak ada komentar:
Posting Komentar