MySQL Check if date range is in date range

前端 未结 1 1685
无人共我
无人共我 2020-12-22 08:07

Having trouble making a SQL query for a small booking system, i have a table containing two entries which holds two different dates and a number.

Nr    DateF         


        
相关标签:
1条回答
  • 2020-12-22 08:25
    SELECT *
    FROM yourTable
    WHERE DateFrom > @rangeEnd OR DateTo < @rangeBegin
    

    DEMO

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