الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

أرجو المساعده من أصحاب الخبرة في Pl/sql

Featured Replies

بتاريخ:

السلام عليكم
ممكن مساعده من أصحاب الخبرة والمعرفة

السؤال الأول







1.3
Create 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.

تم تعديل بواسطة أحساس غالي

بتاريخ:

اخى الكريم
هذه اسئلة سهلة .
حاول تفكر فيها شوية ولو وقفت معاك حاجة ممكن نساعدك فى حلها .

بتاريخ:

السؤال الاول

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 ضمنيا واظهار الرسالة الموجودة فى الكود

بتاريخ:
  • كاتب الموضوع

مشكورين ع المساعده بس مافهمت الحله ممكن توضيح أكثر هل يحتاج نسوي جدول كريت تابل أو مايحتاج ممكن توضيخ أكثر


وأاالف شكرا

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.