咱样才能从一个数据表(student)中随机的抽取出20条记录,并且每一次抽取的时候能保证不重复?help me!help me!
解决方案 »
- 关于静态变量的简单问题,有点想不通
- 一个关于stringGrid的简单问题
- 怎样用Delphi写OPC客户端??急在线等
- 怎么读取一个表中的所有字段名,或者说怎样知道一个字段在不在这个表中呢?
- 我要找一个dxcomnd6组件的D7控件下载,请问哪里有下啊,请给说明一个地址,谢谢!
- 哪位仁兄,研究过FASTREPORT的源码,请进来!!
- 帮忙看看这段代码为什么不能显示指定edit控件的内容
- 帮我看一下下面的过程中的参数是什么意思??(delphi菜鸟)
- 请大家帮忙,错误提示:Invalid BLOB handle in record buffer.(在线)
- 如何获得当前机子的sql server 是否已运行
- 紧急求助,关于EMF/WMF图形处理的问题
- 如何调用VC的DLL?(搞定给500分)
stutid:integer;
i: integer;begin
for i:=0 to 19 do
begin
Randomize;
stuid:=random(最大的学生id);
query1.sql.clear;
query1.sql.add('select * from student where studentid=:stuid')
//
将取出来的记录做处理;
//
end;
end;
every method can't ensure distinct too,
beacause the recordcount of the table is limited.
any method can't ensures distinct result too,
beacause the recordcount of the table is limited.