34,590
社区成员
发帖
与我相关
我的任务
分享
select count(1) from xxx where UserID=2127 and mydate=CONVERT(varchar(100), GETDATE(), 23)
select count(1) from xxx where UserID=2127 and
convert(varchar(10),mydate,120)=convert(varchar(10),getdate(),120)
select count(1)
from xxx
where UserID=2127 and mydate=convert(char(20),getdate(),120)
select * from xxx where UserID=2127 and mydate=convert(nvarchar,getdate(),23)
你想查什么东西?