Home >Database >Mysql Tutorial >sql 随机读取记录语句RAND()与newid()

sql 随机读取记录语句RAND()与newid()

WBOY
WBOYOriginal
2016-06-07 17:48:031295browse

sql 随机读取记录语句rand()与newid()
有人随机函数 rand()

select * from a order by rand();

mssql newid()

select * from a order by newid;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn