开发维护中遇到一个问题,客户并签(几个人同一批次的审批)中,要显示先后审批的顺序,根据步骤编号和时间进行排序!

SQL中时间为NULL排序点滴!!!

select * from WF_STEP_TBL where WF_ID=86362 ORDER BY WF_STEP_ID, case when DECISION_DT is null then 1 else 0 end

 

SQL中时间为NULL排序点滴!!!

 

case when DECISION_DT is null then 1 else 0 end

这段是关键,对时间字段进行了转换!!!!!!

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2021-11-27
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-16
  • 2021-09-07
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
相关资源
相似解决方案