SQL数据库。按年,月,日查询

select * from pop where year(pdate)=年份  and month(pdate)>1 and month(pdate)<3

select * from Mall_Coupons where year(StartDate)=2011 and month(StartDate)>12 and month(StartDate)<2
posted @ 2022-03-23 08:46  离。  阅读(177)  评论(0)    收藏  举报