بتاريخ: 1 أكتوبر 201510 سنة comment_266426 اخواني في المنتدي كل عام وانتم بخير اريد ان اسئل في هذة الشاشه اريد عندما ادخل اسم او رقم المستخدم مكرر يطلع لي ان اسم المستخدم ورقم المستخدم مكرر وهذا هو الكود وايضاًالصورة مرفقة اسفل --------------------------------- declare x number; x1 number; begin if :id_no is null or :user_name is null or :password is null then set_alert_property('ALERT1',alert_message_text,'enter user number'); x:=show_alert('ALERT1'); go_item('ID_no'); raise form_trigger_failure; else insert into USERS(id_no ,user_name,password) values(:id_no,:user_name,:password); commit_form; forms_ddl(' create user '||:user_name||' identified by '||:password); forms_ddl(' grant create session to '||:user_name||' identified by '||:password); forms_ddl(' grant create any table,create session to '||:user_name||' identified by '||:password); -- forms_ddl(' create public synonym city for mm.city'); message('تم تغير كلمة السر '); clear_form; end if; end; -------------------------------------- تم تعديل 1 أكتوبر 201510 سنة بواسطة ميسم الكرام تقديم بلاغ
بتاريخ: 1 أكتوبر 201510 سنة comment_266427 Check before insert for this username Select Count(1) from your table where coulmn name = :user_name if count = 1 then this user name already exist. تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.