从数据库中随机抽N条记录
来源:互联网 发布:布局 知乎 编辑:程序博客网 时间:2024/04/30 22:44
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
Access:
select top n * from table order by rnd(id)'id为数据库的自动编号字段
Sql Server:
select top n * from table order by newid()转自:动态网制作指南 www.knowsky.com<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 从数据库中随机抽N条记录
- 从数据库中随机抽N条记录
- 随机从oracle数据库取N条记录
- 从数据库表中随机获取N条记录的SQL语句
- 从数据库中随机读出n条不重复的记录
- 使用django从数据库中随机取N条记录的不同方法及其性能实测
- 使用django从数据库中随机取N条记录的不同方法及其性能实测
- 从数据库表中随机获取N条记录的SQL语句
- 使用Django从数据库中随机取N条记录的不同方法及其性能实测
- 从表中随机返回n条记录
- ORACLE从表中随机返回n条记录
- 从数据库中随机的取出n条数据
- 两条从数据库中随机抽取记录的语句
- 从数据库中随机提取10条记录
- 从数据库中随机提取10条记录
- 随机取出数据库n条记录
- 随机取出数据库n条记录
- Oracle中随机抽取N条记录
- 设计之痛比女人还麻烦的IE浏览器
- select用存储过程返回的表
- 用DELPHI为ASP开发文件上载组件
- 《一个人的奥林匹克》
- !important在ie7.0的hack方法
- 从数据库中随机抽N条记录
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(7):_sdata
- Delphi使用技巧四则
- 用css制作星级评分
- 如何找出消耗cup的进程信息和执行的语句
- 用Delphi 开发数据库程序经验三则
- uclinux-2008R1-RC8(bf561)到VDSP5的移植(8):_stext
- 分享:CSS使用技巧20则
- SQL查询语句精华使用简要