首页 > 技术文章 > 如何用SQL为每一行均产生一个随机数

jasonlam 2017-11-01 10:49 原文

select cast(ceiling(rand(checksum(newid()))*10) as int) as RndId from 表名  

 

推荐阅读