CAML查询语法 [英] CAML Query Syntax

查看:127
本文介绍了CAML查询语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的问题是与CAML查询语法有关的.

这是我的简单CAML查询,将字段名引用为参数

Hi all,

My question is related CAML Query syntax.

This is my simple CAML query refencing fieldname to the parameter

<Where>
<Contains>
<FieldRef Name="Title"/><Value Type="Text">%firstname%</Value>
</Contains>
</Where>




有没有办法对%first %%参数应用条件.
我想添加其他条件,例如参数%first %%为空(").

感谢任何帮助..




Is there a way to apply conditions on %firstname% prameters.
I want to added other condition like parameter %firstname% is empty ("").

Any help appreciated..

推荐答案

找出答案的最佳方法是使用U2U CAML查询构建器.您可以从下面的链接下载该文件.

http://www.u2u.net/res/Tools/CamlQueryBuilder.aspx
The best way to find that out is to use U2U CAML Query builder. You can download that from the below link.

http://www.u2u.net/res/Tools/CamlQueryBuilder.aspx

They haven''t yet released a version for SP2010 but the 2007 version works fine on 2010.


这篇关于CAML查询语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆