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.
我的表有一个格式为 yyyy-mm-dd 的日期列。
是否可以进行仅列出特定月份中任何一天的结果的查询?这张表中可能有任何一年中的任何一个月,但是说我只想在 2013 年 6 月列出它们?
谢谢
select * from your_table where date_column between '2013-06-01' and '2013-06-30'
SELECT * FROM tablename WHERE date_column_name LIKE '2013-06%'