CAML查询开始与数字问题

时间:2011-06-06 13:10:10

标签: sharepoint sharepoint-2010 sharepoint-2007 caml

在下面的CAML查询中,我在下面的行中引用了0。

<Value Type='Text'>0</Value>

即使值为0,这也不起作用它是A它确实有效(我有A和0两个条目)。我不确定为什么数值不会被拿起来。

任何帮助都将不胜感激。

<Query>
      <Where>
        <And>
          <Eq>
            <FieldRef Name='TCategories' />
            <Value Type='Text'>Abbreviations</Value>
          </Eq>
          <BeginsWith>
            <FieldRef Name='FirstCharacter' />
            <Value Type='Text'>0</Value>
          </BeginsWith>
        </And>
      </Where>
</Query>

1 个答案:

答案 0 :(得分:2)

我确实有类似的查询

enter image description here 这实际上对我来说很好。

确保查询“TCategories”和“FirstCharacter”中的列是文本类型。

谢谢,
- 代表“Santosh”

相关问题