1, desc:降序,明天今天昨天,zyx...cba,.....321  

  sql语句:select * from SC_BackDiggingInfo where WriteDate<='2013-08-31' order by WriteDate  desc

  例如:      

WriteDate
2013-08-28 00:00:00.000
2013-08-27 00:00:00.000
2013-08-26 00:00:00.000
2013-08-25 00:00:00.000
2013-08-24 00:00:00.000
2013-08-23 00:00:00.000
2013-08-22 00:00:00.000

2, asc: 升序,昨天今天明天,abc...xyz,123......   

  sql语句:select * from SC_BackDiggingInfo where WriteDate<='2013-08-31' order by WriteDate  asc

  例如:

WriteDate
2013-08-22 00:00:00.000
2013-08-23 00:00:00.000
2013-08-24 00:00:00.000
2013-08-25 00:00:00.000
2013-08-26 00:00:00.000
2013-08-27 00:00:00.000
2013-08-28 00:00:00.000

相关文章:

  • 2021-08-12
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-24
  • 2021-10-01
  • 2022-02-07
  • 2021-11-24
  • 2022-12-23
相关资源
相似解决方案