cc列如下:
xxx
vvv
bbbb
ccc
xxx
想只要显示
xxx
vvv
bbbb
ccc
解决方法如下:
如果得到所有值不重复。
select cc from tablename group by cc
或
select distinct cc form tablename
如果得到没有重复的所有制,
select cc from tablename group by cc
minus
select cc
from(
select cc,count(*) from tablename group by cc having count(*)>1) A
Adodc1.RecordSource = "select top 1 * from 学生表 order by rnd(id)",随机1个Adodc1.RecordSource = "select top 10 * from 学生表 order by rnd(id)",随机10个
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)