我在 Access 中有这个查询:
SELECT a.title, a.init, a.name, l.User AS CreatedBy,
IIf(IsNull(l.Time),Null,DateAdd("s",l.Time,#3/1/1980#)) AS CreatedAt
FROM (Reports AS a LEFT JOIN
(SELECT id, Min([time]) AS Mintime FROM AuditLog GROUP BY id) AS t
ON a.id = t.id)
LEFT JOIN AuditLog AS l ON (t.mintime = l.time) AND (t.id = l.id)
WHERE (((a.name) Like 'start*') AND ((a.Active)='Y'));
但由于某种原因a.name
,查询中的每个结果都被截断为 25 个字符。为什么是这样?在表中Reports
它是正确的并显示全名(25+ 个字符长)。