How would I write the date range condition correctly for the following query: list all instruments from table "asset", where the "maturity_dt" > 1 year:... in English it sounds like :" AND asset.maturity_dt >= Today + 365.."
答案 0 :(得分:0)
如果您使用MySQL,则需要查询,
Select * from asset where DATEDIFF(maturity_dt, now())>365;