[求助]Select语句中对日期时间型列的排序问题 Post By:2020/3/22 18:38:00 [显示全部帖子]
cmd.CommandText = "S elect *,(Case when 计划方量 > 已发量 Then 计划方量 - 已发量 Else 0 End ) As 待发量 F rom (S elect Row_Number() Over(Order by 开盘时间) As 序号, c.[_Identify],c.通知单号,c.工程名称,c.业务员,c.开盘时间 As 开盘日期,'' As 开盘时间,c.计划方量," & ppyf & " F rom {生产计划排单} As c "