0
如果我有一個名爲「month」的列包含實際月份名稱的字符串表示,如何從下個月選擇記錄?Mysql從一個月的字符串列中選擇下個月
SELECT * FROM minutes WHERE year = YEAR(CURDATE()) AND month =
如果我有一個名爲「month」的列包含實際月份名稱的字符串表示,如何從下個月選擇記錄?Mysql從一個月的字符串列中選擇下個月
SELECT * FROM minutes WHERE year = YEAR(CURDATE()) AND month =
明白了,沒關係:
SELECT * FROM minutes WHERE year = YEAR(CURDATE()) AND month = MONTHNAME(now() + INTERVAL 1 MONTH)