关于order by 查询的问题
?
今天在执行一条查询语句的使用发生了这样一件事:
?
select top 3 * from ta_hr_assscore where ?ta_hr_asstMouth like '%2012-05月%'
?
用这条sql语句查询出的数据是正确的:(从168条开始)
?
?
Id
1680008595195045赵左晨? 108.0? 信息 ??2012-05-01 16:39:012012-05月??员工级刘培
1690005855207047唐琼? ?46.0? ?信息 ? 2012-06-11 14:29:482012-05月 ?员工级刘培
1700005872310093贾辉辉? 76.0? 信息? 2012-06-11 14:30:012012-05月? 员工级刘培
?
?
——————————————————————————————————————————————————————
select top 3 * from ta_hr_assscore where ?ta_hr_asstMouth like '%2012-05月%' order by ta_hr_asstMouth desc
?
但是 当我加上 order by时,神奇了(第168条明明是2012-05月的数据,但是这样就查不出来了!):1710005872310093李四? ??76.0信息2012-06-11 14:30:042012-05月员工级刘培1700005872310093贾辉辉 ??76.0信息2012-06-11 14:30:012012-05月员工级刘培1690005855207047唐琼? ? 46.0信息2012-06-11 14:29:482012-05月员工级刘培?
top 3 *