Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - MYSQL randomly queries 10 records from 100-W data table, and the primary key ID is a discontinuous long integer. Is there an efficient query SQL statement?
MYSQL randomly queries 10 records from 100-W data table, and the primary key ID is a discontinuous long integer. Is there an efficient query SQL statement?
First, the program generates a random number, and then the number greater than this value is 10.

Choice? *? From where? tablename? Where is it? id & gtxxxLIMIT? 10 If we want to separate them, how many random numbers x 1 x2 x3 can we generate?

Choice? *? From where? tablename? Where is it? Id>x 1 limit? 10?

Choice? *? From where? tablename? Where is it? id & gtx2LIMIT? 10 If there are other indexes, you can randomly choose one larger or smaller than this.

Choice? *? From where? tablename? Where is it? uid & gtx 1? And then what? id & gtxxx? Limit? 10