0

I am trying to roder a resultset based on Current date in Sybase ASE. I do not understand how to do that.

select x,date1 from abc where x>y order by date1> current_date

How to use the current date in orderby clause?

4

2 に答える 2

1

明確ではありませんが、以下のクエリのようなことをしたいと思います

  SELECT X,date1 from abc 
    where x>y 
    and date1 >current_Date --can use getdate() for current date 
    order by date1
于 2013-02-14T09:19:55.850 に答える
0

私の間違い、要件を間違えました。Desc または asc で並べ替えてから、データを操作するのが理にかなっています。忙しすぎると基本的なことを忘れがちです。回答ありがとうございます。

于 2013-02-19T13:19:50.243 に答える