SQL and PL/SQL
Oracle SQL and PL/SQL | Queries | DML & DDL statements | Functions | Procedures | Triggers and Packages
لغة الإستعلام SQL
5,153 موضوعات في هذا القسم
-
السلام عليكم الاخوة الافاضل عايز اشغل قاعدة بيانات على عدد 2 سيرفر يعني لو سيرفر مش شغال التاني يقوم بتشغيل قاعدة البيانات من غير ما اي بيانات تتلغي هي ممكن تعمل claster بس انا مش عارف اعمل فيها اي حاجة رجاء اللى يعرفها يقلي او نفتح باب المناقشة فيها سواء في اراكل او sql server حسين
-
تحياتي للجميع tofeee Code stored in Binary/Text files instead in Stored Procedures-SQL SERVER Code_store1654851072003.zip
-
فى محاولة منى لخدمة هذا المنتدى الذى علمنى الكثير لكم منى هذا الكود 1-لحساب اعلى مرتب بدون استخدام الدالة max declare x number; y number:=0; cursor cur_sal is select sal from emp; begin open cur_sal; loop fetch cur_sal into x; exit when cur_sal%notfound; if (x>y) then y:=x; end if; end loop; close cur_sal; dbms_output.put_line('max sal without using max function = '||y); end; 2-لحساب مجموع المرتبات بدون استخدام الدالة sum set serveroutput on size 20000 format wrapped declare x number; y number:=0; cursor cur_sal is select sal from emp; begin open cur_sal; loop fetch cur_sal into x; exit when cur_sal%notfound; y:=y+x; end loop; close cur_sal; dbms_output.pu…
-
السلام عليكم كان ابحث عن من يفيديني في تبسيط فكرة ال COLLECTIONS في ال PL/SQL ما هي ؟ استخدامها ؟؟.. لاني قراتها و الي حد ما تائهه فيها وجزاكم الله . خيرا
-
يا جماعة عندي مشكلة في إدخال البيانات في الجدول وده الجدول ونوع الداتا بتاعته PNAME NOT NULL VARCHAR2(20) DOB NOT NULL DATE DOJ NOT NULL DATE SEX NOT NULL CHAR(1) PROF1 NOT NULL VARCHAR2(15) PROF2 NOT NULL VARCHAR2(15) SALARY NOT NULL NUMBER(10,2) ودي البيانات اللى انا عايز أدخلها anand 21-apr-1966 12-apr-1995 M …
-
slam 3likom am traing to create atable in pl sql but when i finished i have to save may work by ( commit) the plem commit dos'nt work wht i do plz tell me !!!!!
-
السلام عليكم ورحمة الله وبركاته إخوانى لقد قرأت ماذا نعنى ب commit & rollback ولكننى لم أفهم الفارق بينهما بنسبة 100% لذا هل من أحد يرضح لى الفارق حتى تتضح لى الرؤية تماما وجزاكم الله خيرا
-
السلام عليكم كل ما اقوم بعمل function او procedure بيتعمل بس بتظهرلى رسالة created with compilation error ايه الحل للموضوع ده لانه عامل مشاكل عند الاستدعاء شكرا
-
Local procedure A calls remote procedure B. Procedure B was compiled at 8 A.M. Procedure A was modified and recompiled at 9 A.M. Remote procedure B was later modified and recompiled at 11 A.M. The dependency mode is set to TIMESTAMP. What happens when procedure A is invoked at 1 P.M? A. There is no affect on procedure A and it runs successfully. B. Procedure B is invalidated and recompiles when invoked. C. Procedure A is invalidated and recompiles for the first time it is invoked. D. Procedure A is invalidated and recompiles for the second time it is invoked. كالمعتاد عاوز الحل مع الشرح لو مكنش فيها تعب ...... و كمان هو ايه معنى ( The dependency mode is set to TIMEST…
-
You have an AFTER UPDATE row-level on the table EMP. The trigger queries the EMP table and inserts the updating user's information into the AUDIT_TABLE. What happens when the user updates rows on the EMP table? A. A compile time error occurs. B. A runtime error occurs. The effect of trigger body and the triggering statement are rolled back. C. A runtime error occurs. The effect of trigger body is rolled back, but the update on the EMP table takes place. D. The trigger fires successfully. The update on the EMP table occurs, and data is inserted into theAUDIT_TABLE table. E. A runtime error occurs. The update on the EMP table does not take place, but the insert into th…
-
Procedure PROCESS_EMP references the table EMP. Procedure UPDATE_EMP updates rows if table EMP through procedure PROCESS_EMP. There is a remote procedure QUERY_EMP that queries the EMP table through the local procedure PROCESS_EMP. The dependency mode is set to TIMESTAMP in this session. Which two statements are true? (Choose two) A. If the signature of procedure PROCESS_EMP is modified and successfully recompiles, the EMP table is invalidated. B. If internal logic of procedure PROCESS_EMP is modified and successfully recompiles, UPDATE_EMP gets invalidated and will recompile when invoked for the first time. C. If the signature of procedure PROCESS_EMP is modified and s…
-
اثناء قرائتى لفصل الComposite Data Types فى كتاب ال PLSQL قرأت العباره التاليه عن Record >>You can declare and reference nested records. One record can be the component of another record<< انا فهمت انى ممكن اعمل ريكورد يحتوى على ريكورد اخر بس مش عارف ازاى وازاى اعمل Initial للريكورد الداخلى
-
سلام عليكم if the realtion has two attributes or more as a primary key when i define the primary key should i declare a constraint for every key like this constraint pk1 primary key(id); constraint pk1 primary key(date); or declare them just in one constraint : constraint pk primary key(id,date) also what about the same case for foriegn key when i have more than one foriegn key
-
السلام عليكم طبعا قبل كل حاجة بشكر الجميع هنا للمساعدة دائما وجزاهم الله خير بخصوص سؤالي هنا حول الوظيفة التي قمت بكتابتها pre-insert procedure فللحقيقة اريد ان يتم تنفيذ الاجراء في حالة واحدة فقط وهي وجود العنصر في جدول اخر بشرح اخر لدي شاشة شغاله تمام اريد عمل ابديت في احدى الجداول الاخرى في حالة وجود رقم الايصال ضمن الايصالات الخاصة بالقسم بحيث لايعمل التحديث في حالة عدم وجود هذا الايصال في ذلك الجدول المنفصل ساعدوني ربنا يوفقكم
-
Hello All I'm Mostafa fawzy Oracle developer from egypt I know that subject i send not related to ur specialization but it's all oracle or tell me whome can i send it the * problem defintion i connected to SQL Plus by user have only connect privelige when i write the following sql statment (Conn Mostafa/mostafa@oracle as sysdba) run ok knowing that mostafa that not real user on DB and this user take all sys user privilage how that big problem be on oracle pls tell me
-
عاوزة اعرف ازاي اعمل connect علي scott في sql رغم اني كنت عاملاه unlock وكنت مدياله password بس مش بيعمل connect ------ وكمان لو عاوزة اغير الpassword
-
www.oraplus.blogspot.com حمل من هنا http://www.oraplus.blogspot.com/p/telecharger-tutoriels-gratuit.html
-
السلام عليكم اخوانى انا قمت بعمل فرومات للجهاز ونزلت الاوركل 11g من جديد ونزلت sql developer من جديد و اردة ان اعمل connection من جديد ولكن لم اسطتع وهده صور مرفقة تبين المسج الدى يطهر لدى علما بان الاوركل تم تنزلها بشكل سليم وعملت connt على sysdba
-
لسلام عليكم ورحمة الله mon probleme c'est un probleme de connexion aux bases d' oracle au niveau de l'utilisateur , le login et le hôte من فضلكم اخواني الأعزاء ساعدوني أنا جد حائر وشكرا ..... اللهم وفق المسلمين في كل مكان.....
-
-
كيف نوزع ال control files on the three disk drives.
-
الاخوة الاعزاء ارجو المساعده لدي بيانات مدخله على حقل نوعه VARCHAR2 وهذه البانات هي ارقام وطلب ان اقوم بترتيب هذه الارقام تصاعديا وهذا الطلب على مستوى الفورم ولكن يوجد مشكله ان بعض البانات ادخل فيها مسافه بعد الرقم . كيف يمكن تعديل جميع البيانات على ان تكون جميعها ارقام فقط
-
عندي داتا بيز نوعها 10g على جهاز الشركه عندي منها باك اب وبحتاج يوميا اكمل باقي شغلي عليها فالبيت اللاب عندي اوراكل 12c حد عنده فكره احول الداتا بيز ازاي من 10g to 12 c لاني محتجاها جدا وشكرا
-
السلام عليكم ورحمة الله وبركاته اريد طريقة لتحويل التاريخ من julian date الى date format (dd/mm/yyyy) حيث انني استخدم برنامج JDedwards مع Oracle 9i Database حيث يتم تخزين التواريخ من نوع number data type بالشكل التالي : 105001 شرح طريقة التخزين( من اليمين الى اليسار ): 001 : يمثل الايام في السنة ( الاول من يناير ) 05 : السنة ( سنة 2005) 1 : القرن 21 اي معنى التاريخ: 105001 يمثل 1/1/2005 ارجو منكم المساعدة في تحويل التاريخ الى شكل DD/MM/YYYY حيث انه مخزن في قاعدة البيانات من نوع Number وكدلك اريد عرضه في report 9i على شكل dd/mm/yyyy
-