0

如果我有一个名为“月”的列包含实际月份名称的字符串表示,我如何选择下个月的记录?

SELECT * FROM minutes WHERE year = YEAR(CURDATE()) AND month = 
4

1 回答 1

0

明白了,没关系:

SELECT * FROM  minutes WHERE year = YEAR(CURDATE()) AND month = MONTHNAME(now() + INTERVAL 1 MONTH)
于 2012-07-06T16:04:05.557 回答