答案补充
表结构说说来
前提是 你的A是小于B的 M个N是随便select * from 表 where (year = A and month between M and 12) or (year = B and month between 1 and N) or (year >A and year<B)
答案补充
45434860
答案补充
还没有弄完唆
|||
select * from table where 开始的年份' and '结束的年份'
|||
select * from table where year between '开始的年份' and '结束的年份'
答案补充
何必呢 你直接用一个 datatime 字段 搞定得了
答案补充
这张表 与其他表有关联吗 如果没有 我建议你还是修改表结构吧
|||
select * from 表 where 年 between A and B and 月 between M and N
答案补充
楼主 我的不对马