您的位置:首页 > 博客中心 > 数据库 >

sql 语句的月份查询

时间:2022-03-13 23:20

select * from client_info where month(CREATED_DT) =

month(‘2013-9-01‘) and year(CREATED_DT) = year(‘2013-09-01‘);

datediff;
在mysql 中 select datediff(‘2003-01-01‘,‘2003-01-02‘);
在SQL   中 select datediff(hh,‘2003-01-01‘,‘2003-01-02‘);


本文出自 “” 博客,转载请与作者联系!

热门排行

今日推荐

热门手游