62,046
社区成员
发帖
与我相关
我的任务
分享
Create table tb1
( ID int PRIMARY KEY ,
UserID varchar(20) ,
LoginDate datetime )
----
登陆一次记录一次。
select count(*) from tb1 where UserID='asdf' and MONTH(LoginDate)=Month(getdate()),
---
if(count(*)>=3)
{
//
}