Mysql finds out two pieces of data under the condition that the self-increasing id is equal to a certain value.

Table: users, self-increment id
sql:
select id from users where id = (select floor (rand () * ((select max (id) from users)-(select min (id) from users)) + select min (id) from users))

ask for the answer of the Great God. Is there a problem with sql?

Sep.23,2021

  https://stackoverflow.com/que.

					
Menu