Saxon中的XQuery的查询语句示例,如何清除global variable??
2004-10-25 20:08
429 查看
String sexp = "declare variable $groupName as xs:string external; " + "/n" +
"for $t in //quartz/job/job-detail" + " /n" +
"where $t/group = $groupName" + " /n" +
"return $t/name";
XQueryExpression exp = staticContext
.compileQuery(sexp);
dynamicContext.clearParameters();
dynamicContext.setParameter("groupName", groupName);
"for $t in //quartz/job/job-detail" + " /n" +
"where $t/group = $groupName" + " /n" +
"return $t/name";
XQueryExpression exp = staticContext
.compileQuery(sexp);
dynamicContext.clearParameters();
dynamicContext.setParameter("groupName", groupName);
相关文章推荐
- [承前]Saxon执行XQuery时的"重复变量(duplicate global variable)"声明问题
- 如何查询mysql中执行效率低的sql语句
- 如何用查询语句还原SQL的备份数据库?
- 如何查找MySQL中查询慢的SQL语句
- oracle模糊查询语句使用示例
- Mongo数据库的各种查询语句示例(比较全的)
- 传值设置mybatis查询的 列名(字段名),以及如何查看mybatis中执行的SQL语句
- plsql developer如何查询SQL语句执行历史记录
- 优化SQL查询:如何写出高性能SQL语句
- 如何查找MYSQL中查询慢的语句
- 优化SQL查询:如何写出高性能SQL语句
- SQL 优化SQL查询:如何写出高性能SQL语句
- 如何用SQL语句查询Excel数据?
- 如何用SQL查询语句获取Oracle表 树形结构的记录(PL/SQL )
- 如何在SQL Server查询语句(Select)中检索存储过程(Store Procedure)的结果集?
- MySQL查询不使用索引汇总 + 如何优化sql语句
- 多表查询语句写法、数据库数字如何转化为汉子、Sql语句拼接
- SQL 优化SQL查询:如何写出高性能SQL语句
- 如何使用SQLPLUS分析SQL语句(查询执行计划跟踪)
- 【MySQL】如何使用C#+MySQL实现一条MySQL语句进行多表查询