我正在尝试使用以下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 = 'الحوادث'
中的问题。
能请你帮我吗!