sql随机数

1000以内的随机数
 select CEILING(rand()*1000)
某字段插入随机数
update XXXX set  x=CEILING(rand()*1000) 

猜你喜欢

转载自love422619.iteye.com/blog/2259204