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.
如何从表格中获取所选日期每个月的结果集?例如:我希望从表中获取一个结果集,以了解某个特定日期的每个月何时发生事件(假设每个月的 10 日)。
使用 DAY() 函数
SELECT * FROM your_table WHERE DAY(your_field) = 10