按字段月份选择 [英] Select by Month of a field

查看:54
本文介绍了按字段月份选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用月/年从表中获取记录?我有一张这样的桌子:

How can I get records from my table using month/year? I have a table like this:

Name - varchar
DueDate -datetime
Status -boll

DueDate是项目的截止日期,我想要对应于月份/年份的记录,而不是完整的日期,我的意思是特定月份的记录.

DueDate is project due date, I want record corresponding to month/year, not full date, I mean record for specific month.

如何在mysql中做到这一点?

How can I do this in mysql?

推荐答案

只需使用 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆