多列排序
我想多列排序 我是这样写的 但是好像不对select * from employee
where state='American'
order by salary,age desc; //这里是按薪水还是按年龄啊 能运行但是并没有排序 为什么不能这样写吗
2006-10-27 18:06
2006-10-27 19:55
2006-10-27 19:56
谁说只能对一个字段排序,不要误人子弟
order by salary,age desc
是指先对薪水做升序排列,薪水相同的数据行再按照年龄降序排列,不知道你说的没有排序是什么意思?

2006-10-28 07:29
2006-10-28 11:21
2006-10-28 11:47
2006-10-28 12:55