بتاريخ: 17 أغسطس 201114 سنة comment_215104 السلام عليكم ،رمضان مباركانا اعمل على مشروع تخرج، استعمل Oracle expression 10gفي قاعدة البيانات يوجد جدول يحتوي على خانة،(column) number user_second ; احتاج الى مساعدتكم ،في جعل قيمة هده الخانة تنقص اوتوماتكيا الى ان تصل الى صفر!!!! جزاكم الله كل خير تقديم بلاغ
بتاريخ: 18 أغسطس 201114 سنة comment_215110 When do you want decrease that value? or after any action? تقديم بلاغ
بتاريخ: 18 أغسطس 201114 سنة كاتب الموضوع comment_215114 thanks a lot for your response i have table User with three column (Name varchar2(20) ,Role Varchar2(20), Time Number) ,when i add new row on this table for example insert into User values ( maryam,admin,500) and i type commit; the value 500 have to begin decrement automaticly on the table user baraka alah fik تقديم بلاغ
بتاريخ: 18 أغسطس 201114 سنة comment_215140 You can create after insert trigger on the table and do your update statement in that trigger note to use pragma autonomous_transaction ; in declaration section in trigger تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.