日期:2014-05-17 浏览次数:20687 次
<?xml version="1.0" encoding="UTF-8"?>
<application id="SP" portal="CWC">
<data-access>
<procedure name="crosopen">
<data-source>crdcrd</data-source>
<statement><![CDATA[ call crd_app.crd_extended_search.crd_open_orders(?,?,?,?,?,?)]]></statement>
上面的crd_app.crd_extended_search.crd_status 三个分别代表数据库,表明,存储过程名对吗?
<parameter-list number="6">
<param>
<type>in</type>
<position>1</position>
<data-type>varchar</data-type>
<name>custId</name>
</param>
<param>
<type>in</type>
<position>2</position>
<data-type>varchar</data-type>
<name>startDate</name>
</param>
<param>
<type>in</type>
<position>3</position>
<data-type>varchar</data-type>
<name>endDate</name>
</param>
<param>
<type>in</type>
<position>4</position>
<data-type>varchar</data-type>
<name>loc</name>
</param>
<param>
<type>in</type>
<position>5</position>
<data-type>varchar</data-type>
<name>rowCount</name>
</param>
<param>
<type>out</type>
<position>6</position>
<data-type>cursor</data-type>
</param>
</parameter-list>
</procedure>
</data-access>
</application>
这段是项目中存储过程的xml
这里面的in和out分别代表的什么意思啊??
好像这里很关键,高手细讲啊~~
PROCEDURE crd_open_orders(
p_cust_id IN CRD_CUST_BILL_TO.GEAE_CUST_NUMBER%TYPE,
p_start_date IN VARCHAR2,
p_end_date IN VARCHAR2,
p_loc IN VARCHAR2,
p_rownum IN VARCHAR2,
p_crd_open_orders OUT result_cursor) IS
BEGIN
IF(p_loc = 'ALL') THEN
OPEN p_crd_open_orders FOR
SELECT *
FROM
(
SELECT /*+ ORDERED */ DISTINCT
pox.Cust_Po_Number , --1
pox.Cust_Po_Li_Num, --2
pox.location_id, --3
&nb