Mysql 查询某年,某季度,某月,某天搜索方法总结

假设有一张oa_item_info(项目信息表),其中created为项目建立时间字段sql 咱们来进行以下的搜索 数据库 1.查询某年的数据函数 1.1 select * from oa_item_info where created like '2018-%'; spa 1.2 select * from oa_item_info where left(created,4)='2018'; o
相关文章
相关标签/搜索