dataview检索中如何表达‘有且仅有’

在A文档中存在 -01 +01
在B文档中存在 +01 +01
在C文档中存在 -01 -01
在D文档中存在 +01
在E文档中存在 -01

如何用dataview检索出 仅存在一个‘01’(无论正负)的文档 即D/E文档

我测试过是没问题,参考着改一下吧。
重点是string(length(split(file.name, "草稿"))) = "2",切割字符串确定只会切割成两个新字符串

table file.name, 
       string(length(split(file.name, "草稿"))) as count
from "09-杂项归纳"
where contains(file.name, "草稿") and string(length(split(file.name, "草稿"))) = "2"
1 个赞