27,580
社区成员
发帖
与我相关
我的任务
分享create table tb(Birthday datetime)
insert into tb select '1979-01-01'
insert into tb select '1978-01-01'
insert into tb select '1977-01-01'
declare @m int
select @m=count(1) from tb where Birthday <cast('1980-01-01' as datetime)+1
select @m
declare @m int
select @m=count(1) from userinfo where Birthday> ='1980-01-01'
select @m
select count(*) from UserInfo where Birthday>'1980-01-01'