SQL statement - data query generated a given year

Note: Use the year function

select * from lccont where conttype='1' and salechnl in('02','03','04','05') and year(makedate)='2019'

Guess you like

Origin www.cnblogs.com/dongyaotou/p/12175392.html