Querying using the datepart from a time stamp in a pass-through Proc SQL

后端 未结 3 1977
执笔经年
执笔经年 2021-01-27 15:33

I am trying to use the date part of a time-stamp in my where query in a db2 pass-through proc SQL code below. I tried using date and datepart functions but it wont work with thi

3条回答
  •  孤城傲影
    2021-01-27 15:51

    I believe, you should use SAS-date literal. So:

     where DATEPART(timestamp) > '12Jan2013'd
    

提交回复
热议问题