DEBUINFO4GL
Programmer
Please let me know how I create a cursor in store procedure?
see the below SQL.
SELECT cust_code,cust_name INTO m_code,m_desc
FROM customer WHERE ..............
UNION
SELECT order_no,order_desc INTO m_code,m_desc
FROM order WHERE ...............
The above select are giving error in store procedure, because I am using two time INTO statement.
If I want to avoid INTO statement than I need a cursor in store procedure.
Please can any one help me (How I create a cursor in store procedure).
Thanks
Debu
see the below SQL.
SELECT cust_code,cust_name INTO m_code,m_desc
FROM customer WHERE ..............
UNION
SELECT order_no,order_desc INTO m_code,m_desc
FROM order WHERE ...............
The above select are giving error in store procedure, because I am using two time INTO statement.
If I want to avoid INTO statement than I need a cursor in store procedure.
Please can any one help me (How I create a cursor in store procedure).
Thanks
Debu