--난수 만들기declare @is_limit int = 10 -- 난수범위 시작 숫자declare @ie_limit int = 100 -- 난수범위 끝 숫자-- 범위 : 11 ~ 99select round(((@ie_limit - @is_limit + 1) * rand() + @is_limit), 0, 1) as randomNum-- 범위 : 10 ~ 100select round(((@ie_limit - @is_limit) * rand() + @is_limit), 0, 1) as randomNum-- 형태 : 99696D759F614BE6A90A2A3A6523BA5Eselect replace(newid(),'-','') as '쿠폰번호'
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
댓글 쓰기
피드 구독하기:
댓글 (Atom)