在SQLserver中怎样实现日期型比较,例如比较当前时间的年月日与数据库中类型为datetime类型的数据比较,在access 中用"select * from rc_info where year(rc_date)="&year(date)&" and month(rc_date)="&month&" and day(rc_date)="&day(date)&""
问在sql server中怎样实现以上功能。
...全文
262打赏收藏
SQL查询问题!!
在SQLserver中怎样实现日期型比较,例如比较当前时间的年月日与数据库中类型为datetime类型的数据比较,在access 中用"select * from rc_info where year(rc_date)="&year(date)&" and month(rc_date)="&month&" and day(rc_date)="&day(date)&"" 问在sql server中怎样实现以上功能。