.Description列是“ MEMO”类型。
使用DISTINCT时是否可以检索DocketEntriedFiledBy.Description列的完整值?
似乎“ DISTINCT”将值截断为255个字符(根据下面查询一的结果),而“ DISTINCTROW”或仅“ SELECT Docket ....”都返回完整值-超过255字符(根据以下查询二的结果)。
有没有解决的办法?我只想要唯一行。也许可以更改查询以消除对“ DISTINCT”的需要?
查询一项:
SELECT DISTINCT DocketEntriesFiledBy.CaseNumber,
DocketEntriesFiledBy.docketNum,
DocketEntriesFiledBy.Date,
DocketEntriesFiledBy.Description,
Attorney_Firm.Firm,
DocketEntriesFiledBy.FiledByLast,
Party_Firms.PartyRole,
Party_Firms.CostPerHour,
DocketEntriesFiledBy.TimeSpent
FROM DocketEntriesFiledBy INNER JOIN (
Attorney_Firm INNER JOIN Party_Firms
ON Attorney_Firm.Firm = Party_Firms.Firm)
ON DocketEntriesFiledBy.FiledByLast = Attorney_Firm.AttyLast;
查询两个:
SELECT DISTINCTROW DocketEntriesFiledBy.CaseNumber,
DocketEntriesFiledBy.docketNum,
DocketEntriesFiledBy.Date,
DocketEntriesFiledBy.Description,
Attorney_Firm.Firm,
DocketEntriesFiledBy.FiledByLast,
Party_Firms.PartyRole,
Party_Firms.CostPerHour,
DocketEntriesFiledBy.TimeSpent
FROM DocketEntriesFiledBy INNER JOIN (
Attorney_Firm INNER JOIN Party_Firms
ON Attorney_Firm.Firm = Party_Firms.Firm)
ON DocketEntriesFiledBy.FiledByLast = Attorney_Firm.AttyLast;
编辑:虽然现在将其标记为重复,但它确实与所标识的帖子有两种不同。 (1)我告知“ DISTINCTROWS”有所不同,并且不会截断,并且(2)在这一点上,该帖子的软件使用已超过十年。