10 records

xiaoxiao2021-03-05  21

Extract 10 records of records: SQL Server:

SELECT

TOP

10

*

From

table

ORDER

BY

NewID

() Access:

SELECT

TOP

10

*

From

table

ORDER

BY

RND (ID) RND (ID) The ID is the automatic number field, you can use any other value to complete, such as using the Name Field (Username)

SELECT

TOP

10

*

From

table

ORDER

BY

RND

Len

(UserName)) MySQL:

SELECT

*

From

table

ORDER

BY

Rand

() LIMIT

10

转载请注明原文地址:https://www.9cbs.com/read-38021.html

New Post(0)