xml - 使用 SQL 查询从 Oracle Report Builder 生成 XML 文件
问题描述
我正在尝试使用以下 SQL 查询从 Oracle Report Builder 生成 XML:
select DISTINCT
ax.emp_no
,p.full_name
,p.previous_name
,a.creation_date
,a.segment4
,a.segment2
from people_all ax
,people p
,Person pr
,analysis a
,structures s
where p.person_id = ax.person_id(+)
and ax.full_name = p.full_name
and p.analysis_id = a.analysis_id
and p.id_num = s.id_num
and s.id_structure Like 'ORT%'
and a.segment1 = 'الحوادث';
当我生成 XML 时,输出为:
<?xml version="1.0" encoding="WINDOWS-1252"?>
<!-- Generated by Oracle Reports version 10.1.2.0.2 -->
<REPORT78>
<LIST_G_EMP_NO>
</LIST_G_EMP_NO>
</REPORT78>
但是,如果我删除最后一行and a.segment1 = 'الحوادث'
,则输出很好并且可以按预期工作。所以问题出在这一行and a.segment1 = 'الحوادث'
。
请你帮助我好吗!
解决方案
推荐阅读
- apache-zookeeper - Zookeeper Quorum 和非 Quorum
- html - 未加载 Leaflet MarkerCluster 插件对 CSS 和 JS 文件的本地引用
- r - 折叠和合并重叠的时间间隔
- java - 基于 Java 模板的字符串构造工具
- mysql - MySQL将月份数字转换为月份名称
- wordpress - 在一级 Wordpress 自定义助行器菜单中强制自定义 href 链接
- django - 使用 IF 语句停止 Jinja2 执行?
- javascript - 检查字符串是否在字符串中的任何位置包含 1 到 3 个 .-_ 字符
- python-3.x - 使用 Beautiful Soup 从 HTML Span 中提取数据
- c++ - 从类模板继承私有成员变量