بتاريخ: 15 سبتمبر 200817 سنة comment_138830 Dynamic Cursor in PL/SQLHere we'll Retrive all Accounts Belongs to The Customer (10021)Ex:declare CURSOR c (id_in IN NUMBER) IS SELECT acount_no FROM accounts WHERE customer_no = id_in;begin for r in c(10021) loop dbms_output.put_line(r.acount_no); end loop;end;Output:0110021002 --(Account #1)0210021001 --(Account #2)0110021000 --(Account #3) تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.