我有这个正在返回的 SQL Server 查询Conversion failed when converting date and/or time from character string.
(
@numberRecords int,
@date varchar(12)
)
AS
SET ROWCOUNT @numberRecords
SELECT re.ID, re.RecentChangeTypeID, re.LogID, re.RevisionID
FROM RecentChanges re
FULL OUTER JOIN Revisions rev
ON re.RevisionID = rev.ID
FULL OUTER JOIN Logs lg
ON re.LogID = lg.ID
WHERE convert(datetime, rev.Timestamp) >= '@date' OR
convert(datetime, lg.Timestamp) >= '@date';
RETURN
该date
参数返回格式为“dd-MM-yyyy”的字符串值。可能是什么原因?