-- 生成一个长度 为10位数 的随机数
select 1000000000+round((99999999-10000000)*rand(),0)
--生成一个长度 为10位数以内 的随机数
select cast( floor(rand()*10000000000) as bigint)
sqlserver函数
最新推荐文章于 2023-07-03 20:32:57 发布
-- 生成一个长度 为10位数 的随机数
select 1000000000+round((99999999-10000000)*rand(),0)
--生成一个长度 为10位数以内 的随机数
select cast( floor(rand()*10000000000) as bigint)