标签:
SELECT @leftPV=SUM(TotalPv) FROM Com_Order WHERE OrderPeriod =@Duration AND MemNumber IN (SELECT MemNumber FROM dbo.Com_Member WHERE MemBinaryList LIKE ‘%,‘+CAST(@leftLeg AS NVARCHAR(256)) + ‘,%‘)
标签:
原文地址:http://www.cnblogs.com/armanda/p/4839525.html