Using timestampdiff in a Derby WHERE clause

后端 未结 1 594
攒了一身酷
攒了一身酷 2020-12-21 04:45

I would like to simulate the effect of the following type of query (that is in Microsoft SQL Server syntax) in a Derby database. The goal is to return all records in the ta

1条回答
  •  粉色の甜心
    2020-12-21 05:04

    You can see an example in the original patch email,

    SELECT * FROM t WHERE {fn TIMESTAMPDIFF( SQL_TSI_DAY, CURRENT_DAY, promisedDate)} <= 1
    

    0 讨论(0)
提交回复
热议问题