摘要:
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 阅读全文