34,837
社区成员




select * from Sys_Dictionary
where len(DID)>11 and isdate(left(right(DID,11),8))=1
AND left(right(DID,11),8) = CONVERT(VARCHAR(8),DATEADD(DAY,-1,GETDATE()),112)
select *
INTO #
from Sys_Dictionary
where len(DID)>11 and isdate(left(right(DID,11),8))=1
select * from
# A
where datediff(d,cast(left(right(DID,11),8) as datetime),getdate())=1
DROP TABLE #