小宋

song_xiaopeng@126.com

导航

2013年11月5日 #

Sql自动生成字母加数字的随机数

摘要: 1 /* 2 select char(65+ceiling(rand()*25)) --随机字母(大写) 3 select char(97+ceiling(rand()*25)) --随机字母(小写) 4 select cast(ceiling(rand()*9) as varchar(1)) --随机数字 1至9的随机数字(整数) 5 */ 6 --declare @qq int 7 --SET @qq=0 8 --while(@qq<34106) 9 --BEGIN10 11 declare @i int 12 declare @flag int13... 阅读全文

posted @ 2013-11-05 15:24 _小宋 阅读(2112) 评论(0) 推荐(0) 编辑