随机0~N之间的整数

select cast(floor(rand() * N) as int) 
posted @ 2016-06-03 14:34  晴天MM  阅读(200)  评论(0)    收藏  举报