如何实现“包含”对于在共享点中使用 caml 的数字字段
我想在 CAML 查询中实现通配符搜索。我使用“包含”子句来实现文本字段的此功能。我想为数字字段实现相同的功能。包含对其不起作用。有人可以告诉我如何为数字字段实现此功能。 SQL中有“like”之类的运算符吗???
I want to achieve a wildcard search in CAML Query. I used the "Contains" clause to achieve this functionality for text field. I want to achieve the same functionality for a numeric field. Contains does not work for it. Can someone tell me how to achieve this functionality for a numeric field. Is there any operator such as "like" in SQL???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CAML 仅允许在文本或注释类型字段上使用 contains。但是您可以设置一个新的计算列表列(键入文本),其值与数字相同。
然后,在包含数字字符串的“文本”字段上使用 CAML 查询。
〜ED
CAML only allows contains to be used on Text or Note type fields. But you could set up a new calculated list column (type text) who's value is the same as the number.
Then, use your CAML query on the "text" field that Contains the numerical string.
~ED