rand>
MySQLで関数を使用して行を並べ替えてから、
limit
を使用して上位10個(または必要な数)を取得します 。
select * from table order by rand() limit 10
数学の質問だけが必要な場合:
select * from table where type = 1 order by rand() limit 10
rand>
MySQLで関数を使用して行を並べ替えてから、
limit
を使用して上位10個(または必要な数)を取得します 。
select * from table order by rand() limit 10
数学の質問だけが必要な場合:
select * from table where type = 1 order by rand() limit 10