码迷,mamicode.com
首页 > 数据库 > 详细

SQL语句-查询特定年份产生的数据

时间:2020-01-10 13:02:50      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:span   EDA   使用   date   tty   rom   语句   HERE   数据   

注意:year函数的使用

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

SQL语句-查询特定年份产生的数据

标签:span   EDA   使用   date   tty   rom   语句   HERE   数据   

原文地址:https://www.cnblogs.com/dongyaotou/p/12175392.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!