首页 > 解决方案 > 使用 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 = 'الحوادث'

请你帮助我好吗!

标签: xmloracle

解决方案


推荐阅读