为什么哈希表返回nil.Doesn&#t;哈希表适用于列表。
答案 0 :(得分:0)
默认哈希表使用`DECLARE @Org VARCHAR(50)
DECLARE @UserName VARCHAR(50)
DECLARE @StartDate DATETIME
DECLARE @EndDate DATETIME
DECLARE @FinalizedDate DateTime
DECLARE @EventDate DateTime
SET @org = ‘zzz’
SET @StartDate = '2014-08-29'
SET @EndDate = '2014-09-30'
Select A.*, EventDate, FinalizedDate, Org
From ABC A
WHERE Org = @Org AND (@EventDate BETWEEN @StartDate AND @EndDate AND @EventDate IS NOT NULL)
or (@FinalizedDate BETWEEN @StartDate AND @EndDate AND @FinalizedDate IS NOT NULL)
进行密钥比较。您可以选择eql
,eq
,eql
和equal
。对于列表,您需要equalp
或equal
。在Hyperspec以及equalp
中查找它们。