Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
What should be the oracle parameter type while calling procedure which has parameter with data type %TYPE?

I have one procedure,

PROCEDURE getdata(
p_id ORDER_XX.XX_ID%TYPE,
p_xx ORDER_XX.XX__NUMBER%TYPE,
p_yy ORDER_XX.XX_DATE%TYPE,
p_xx ORDER_XX.XX_DATE%TYPE,
p_cr OUT cccc_refcursor}


while calling this procedure from front end what should be the oracle parameter type for p_id,P_xx etc?
Posted
Updated 23-Jun-13 21:38pm
v2

1 solution

It should be the same type as the underlying type of the object.

ORDER_MONITOR.ORDER_ID%TYPE

Should be the same type as the field ORDER_MONITOR.ORDER_ID. Most likely based on the name a Number type.

The "%TYPE" just means, use the type of the object to the left.

C#
OracleType.Number


Hogan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900