P粉2450036072023-09-06 16:28:07
Poor database design can cause many problems. Your database is unavailable. Date
should be in timestamp or date format split into two columns: start_date
and end_date
Then you can execute
SELECT * FROM holiday_master WHERE start_date < :date AND end_date > :date