If you want to randomly query multiple pieces of data, which cannot be repeated each time, how to achieve it?

such as the question: if you want to randomly query multiple pieces of data, which cannot be repeated each time, how to achieve it?

Mar.07,2021

you can add a field to the database table to mark it;
, or put the checked data primary key into the set of redis, and click Filter

after each random check.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32f46-4eabc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32f46-4eabc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?