注意:year函数的使用
select * from lccont where conttype=‘1‘ and salechnl in(‘02‘,‘03‘,‘04‘,‘05‘) and year(makedate)=‘2019‘
SQL语句-查询特定年份产生的数据
原文:https://www.cnblogs.com/dongyaotou/p/12175392.html