文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>MYSQL随机抽取数据库里的几条数据

MYSQL随机抽取数据库里的几条数据

时间:2007-02-18  来源:PHP爱好者

mysql> use discuz;
Database changed

mysql> select username from cdb_members order by rand() limit 0,5;
+--------------+
| username     |
+--------------+
| hahamimi     |
| hyp323       |
| zjh00958     |
| 梦有知       |
| winteralways |
+--------------+
5 rows in set (0.03 sec)

mysql> select username from cdb_members order by rand() limit 0,5;
+-----------+
| username  |
+-----------+
| setnm2003 |
| Raymond   |
| nyyjy010  |
| 290500231 |
| samtian   |
+-----------+
5 rows in set (0.00 sec)

mysql> select username from cdb_members order by rand() limit 0,5;
+-------------+
| username    |
+-------------+
| ly2008      |
| tellgkkg    |
| 1502050124  |
| powershot   |
| adriftcloud |
+-------------+
5 rows in set (0.00 sec)

mysql> select username from cdb_members order by rand() limit 0,5;
+-----------+
| username  |
+-----------+
| Takeshi   |
| icelong   |
| 狗狗请罪  |
| 菜头      |
| weike1130 |
+-----------+
5 rows in set (0.01 sec)

mysql> select username from cdb_members order by rand() limit 0,5;
+----------+
| username |
+----------+
| 菜头     |
| romeoqq  |
| hahamimi |
| 青玫瑰   |
| lmhllr   |
+----------+
5 rows in set (0.00 sec)

mysql>
排行榜 更多 +
找茬脑洞的世界安卓版

找茬脑洞的世界安卓版

休闲益智 下载
滑板英雄跑酷2手游

滑板英雄跑酷2手游

休闲益智 下载
披萨对对看下载

披萨对对看下载

休闲益智 下载