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.
我有一个表,它有一个week_start和 week_end 列,都是 INT。他们在一年中的几周内介于 1-52 之间。是否可以列出 和 之间的所有week_end星期week_start?
week_start
week_end
如果您在数据库中有一个week字段(不是一个week_start和week_end字段),这应该可以工作。
week
SELECT * FROM table WHERE week BETWEEN week_start AND week_end