日期:2014-05-16  浏览次数:20920 次

access 不固定排序 急救!!!!
表如下
id tittle class
1 a wed
2 b rtt
3 c wed
4 d wed
5 w yyt
6 3 rtt
7 yu hhh

排序后是
id tittle class
2 b rtt
6 3 rtt
7 yu hhh
1 a wed
3 c wed
4 d wed
5 w yyt

------解决方案--------------------
SQL code
select * from [Table] order by rnd(id)

------解决方案--------------------
至少下句是完全符合你的要求的。
SQL code

select * from 表如下
order by instr('rtt,hhh,wed,yyt',class)