Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含 n 条记录的表,每条记录都有两个字段startDate,day我想选择如果我将日期添加到 startDate 的记录,结果是 >= DateTime.Now
startDate
day
我可以用查询来做吗?
SELECT * FROM my_table WHERE startdate + INTERVAL day DAY >= NOW();
参见 juergen d 的小提琴:sqlfiddle.com/#!2/eeb77/1