بتاريخ: 9 ديسمبر 201015 سنة comment_204948 السلام عليكم ممكن مساعده من أصحاب الخبرة والمعرفة السؤال الأول 1.3Create any table with a primary key column. Input the primary key column value. Write a PL/SQL procedure to delete the record of the given primary key column value. If the value does not exist, then the procedure must raise appropriate exception. السؤال الثاني For the table created in 1.3, Write a PL/SQL function which will use any mathematical SQL function. Primary key column value must be passed as the input parameter. تم تعديل 9 ديسمبر 201015 سنة بواسطة أحساس غالي تقديم بلاغ
بتاريخ: 10 ديسمبر 201015 سنة comment_205009 اخى الكريم هذه اسئلة سهلة . حاول تفكر فيها شوية ولو وقفت معاك حاجة ممكن نساعدك فى حلها . تقديم بلاغ
بتاريخ: 10 ديسمبر 201015 سنة comment_205010 السؤال الاول create or replace procedure del_pk_val(pk_val number) is sql_stmt varchar2(200); i employees.employee_id%type ; begin select employee_id into i from employees where employee_id = pk_val ; sql_stmt := 'delete from employees '||' where employee_id = :id' ; execute immediate sql_stmt using pk_val ; exception when no_data_found then dbms_output.put_line('no such value'); End ; / show errors ; لاحظ ان جملة ال select فائدتها عمل بحث على قيمة ال pk هل هو موجود ام لا وايضا اذا كان غير موجود يتم رفع ال Exception ضمنيا واظهار الرسالة الموجودة فى الكود تقديم بلاغ
بتاريخ: 11 ديسمبر 201015 سنة كاتب الموضوع comment_205057 مشكورين ع المساعده بس مافهمت الحله ممكن توضيح أكثر هل يحتاج نسوي جدول كريت تابل أو مايحتاج ممكن توضيخ أكثر وأاالف شكرا تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.