declare @test table(
id int,
name varchar(100)
)
insert into @test(id,name)
select ID,LastName from tb_OrderUserInfo where DATEDIFF(M,InTime,GETDATE())<3
select * from @test
declare @test table(
id int,
name varchar(100)
)
insert into @test(id,name)
select ID,LastName from tb_OrderUserInfo where DATEDIFF(M,InTime,GETDATE())<3
select * from @test