All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
如何找出相同月日记录_[SQL Server教程]

Writer: 归海一刀 Article type: Programming skills(编程技巧) Time: 2014/2/3 6:44:05 Browse times: 424 Comment times: 0

如何找出相同月日记录_[SQL Server教程]


Head photo

Go homepage
Upload pictures
Write articles

如何找出相同月日记录_[SQL Server教程]

主要是应用函数year,month,day,hour,minute,second
获得当前时间在MSSQL和ACCESS中,分别是getdate()和now()

MSSQL
select * from tablename where month(日期字段) = month(getdate()) and day(日期字段) = day getdate())


ACCESS
select * from tablename where month(日期字段) = month(now()) and day(日期字段) = day(now())






There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.