摘要: Generating Random Numbers in Transact-SQLThe Transact SQLRandfunction can be used to return a random floating point number between 0 and 1:SELECT RAND() AS RandomNumberThe Rand function can also be supplied with an integer value (i.e. smallint, tinyint or int) to use as a random seed:SELECT RAND(@My 阅读全文
posted @ 2012-03-01 17:36 programming snail 阅读(1309) 评论(1) 推荐(0) 编辑