بتاريخ: 26 مايو 200916 سنة comment_158253 hi everybody, I would like if possible, I create a table where there is a sequence that increments automatically as soon as you register a new lighne,I do not know how,thank you very much تقديم بلاغ
بتاريخ: 26 مايو 200916 سنة comment_158262 I do not know how what is how??you can use this linkhttp://www.araboug.org/ib/index.php?showtopic=32833 تقديم بلاغ
بتاريخ: 26 مايو 200916 سنة comment_158263 تفضل اخي BEGIN SELECT MAX(NVL(P_NO,0)+1) INTO :BLK1.P_NO FROM PART_SERVC; EXCEPTION WHEN OTHERS THEN :BLK1.P_NO:=1; END; IF NVL(:BLK1.P_NO,0)=0 THEN :BLK1.P_NO:=1; END IF; بالتوفيق تقديم بلاغ
بتاريخ: 26 مايو 200916 سنة comment_158264 أخي الكريم pali.oracle الاخت تستخدم ال squence كا object وليس عمل كود لتوليد رقم تزايدي ولاحظ هذا منتدى ال pl-sql وليس الفورم عذرا كي لايحدث تشتت تقديم بلاغ
بتاريخ: 27 مايو 200916 سنة كاتب الموضوع comment_158358 salvation, my question is how to create a parameter that increases automatically when you record a new line in the tableto better explain I created a table person (id, name, surname, age ,........) what I would like to add a new person incrementing the id to point to the new line and record the information provided تقديم بلاغ
بتاريخ: 27 مايو 200916 سنة comment_158369 السلام عليكم لادخال القيمة التالية من ال squence يبقى كده insert into person(id,name,..,....) values(yoursquencename.nextval,'mohammed',..,.,,.); etcالمفروض تكتبي في الخانة التي سيتم تزايدها من خلال ال squence ===> اسم السيكونس وبعدين nextvalلو عندك سيكونس اسمها sqهتكتبي كدهsq.nextval وهكذا تقديم بلاغ
بتاريخ: 27 مايو 200916 سنة كاتب الموضوع comment_158372 thannnnnnnks a lot ;allah yajazikome khayre تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.