【发布时间】:2015-07-11 14:39:36
【问题描述】:
我想在 XQuery 中编写以下嵌套 if 条件,
if(condition-1) {
if(nested-condition-11) {
....
}
if(nested-condition-12) {
....
}
}
else if(condition-2) {
if(nested-condition-21) {
....
}
if(nested-condition-22) {
....
}
}
else if(condition-3) {
if(nested-condition-31) {
....
}
if(nested-condition-32) {
....
}
}
else {
}
我已尝试使用 XQuery 编写以下代码,
if (condition-1) then
if(nested-condition-11) then
...
else ()
if(nested-condition-12) then
...
else ()
else if (condition-2) then
if(nested-condition-21) then
...
else ()
if(nested-condition-22) then
...
else ()
else if (condition-3) then
if(nested-condition-31) then
...
else ()
if(nested-condition-32) then
...
else ()
else()
但这不起作用。它抛出以下错误,
此行有多个标记 - 第 310 行,第 9 列:无效表达式:意外标记:if - 2 行更改
请分享一些关于此的指针。谢谢。
【问题讨论】:
标签: oracle xquery soa osb nested-if