Derby SQL Timestamp Arithmetic and JDBC escape syntax
问题 I have two columns in my table, Created(TIMESTAMP) and lifetime(BIGINT). Lifetime is represented as seconds. I would like to add the lifetime column to the timestamp column and compare that result to another date. I referenced the derby manual and found support for TIMESTAMPADD in the "JDBC escape syntax for fn keyword" section: {fn functionCall} TIMESTAMPADD( interval, integerExpression, timestampExpression ) Okay so I tried: SELECT i.messageId FROM ServerMessageEntity i WHERE {fn