create procedure sp_sales_order1(in customer_id integer,in product_id integer)
result(id integer,order_date date,fin_code_id char(2),region char(7),sales_rep
integer) begin select s.id,s.order_date,s.fin_code_id,s.region,s.sales_rep
from sales_order as s,sales_order_items as i where s.cust_id=customer_id
and i.prod_id=product_id and s.id=i.id end;
以上过程为什么不能在ORACLE7。03中现实。
如果要现实该怎么办。
谢谢大家的帮助!
|