بتاريخ: 3 أبريل 200916 سنة comment_152803 يا جماعة عندي مشكلة في إدخال البيانات في الجدول وده الجدول ونوع الداتا بتاعتهPNAME NOT NULL VARCHAR2(20)DOB NOT NULL DATEDOJ NOT NULL DATESEX 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 pascal basic 3200وده الكود اللي دخلت بيه القيم insert into programmer (pname , dob , doj , sex , prof1 , prof2 , salary) values ('anand ' , 21-apr-1966 , 12-apr-1995 , 'm' ,'pascal','basic',3200); بيجيني خطأ بيقول ORA-00984: column not allowed hereياريت يا جماعة حد يقولي الخطأ ده إيه ومعناه إيه وأخلص منه إزاي وشكرا ليكم كتييييييييييييييييييييييييييييييير جدا تقديم بلاغ
بتاريخ: 3 أبريل 200916 سنة comment_152804 السلام عليكم..المشكلة في قيمة التاريخ يجب أن تحاط بـ(' ') '21-apr-1966 ' تقديم بلاغ
بتاريخ: 4 أبريل 200916 سنة comment_152811 السلام عليكم اخي يبدو ان الخطاء هو في التاريخ والذي يجب تحويله الي تاريخ بدل ما يكون "كراكتر" والذي يجب ان يكون عملية الادخال كالاتي insert into programmer (pname , dob , doj , sex , prof1 , prof2 , salary) values ('anand ' , to_Date('21-04-1966','dd-mm-yyyy') , to_date('12-04-1995','dd-mm-yyyy') , 'm' ,'pascal','basic',3200); تقديم بلاغ
بتاريخ: 4 أبريل 200916 سنة comment_152822 السلام عليكم...أخي bahraini_78 .. عندما نقوم بإدخال قيمة تاريخ حسب الفورمات القياسي المعرف لدينا , فلا داعي لتحويله إلى تاريخ , أما إذا أردنا إدخاله بغير فورمات فيجب تحويله إلى تاريخ كما فعلت في مثالك وجزاك الله كل الخير للتوضيح .. ولمعرفة الفورمات القياسي نستخدم: SQL> select SYS_CONTEXT('USERENV','NLS_DATE_FORMAT') Date_Format 2 from dual; DATE_FORMAT ----------------------------------------------------------------- DD-MON-RR تقديم بلاغ
بتاريخ: 4 أبريل 200916 سنة comment_152839 السلام عليكم ورحمة الله وبركاتهشكرا للاخوة الذين ردوا على الاخ amirsaadواتمني ان يكون وجد بين سطور ردودكم حل مشكلتهوفقه الله ووفقكم الى ماتحبون ويرضي تقديم بلاغ
بتاريخ: 4 أبريل 200916 سنة comment_152857 insert into emp (EMPNO,HIREDATE)values(113,'21/07/1966' ) dear write date as '21/07/1966' تقديم بلاغ
بتاريخ: 4 أبريل 200916 سنة comment_152864 السلام عليكم ورحمة الله وبركاته الاخ troyman ممكن بعد اذنك تشرحلنا الكود الي انت كتابته بتاعت التالايخ بس بالتفصيل شويه بعد اذنك لان انا شايف ان كلها اوامر جاهزه وانا اول مره اشوفها بصراحه فممكن التوضيح مع شرح ليه وضعت كل كلمه في المكان بتاعها وجزاك الله خير ياخي تقديم بلاغ
بتاريخ: 4 أبريل 200916 سنة comment_152868 SYS_CONTEXT function in Oracle SYS_CONTEXT is the function which returns information of the current session. It replaces the traditional USERENV function which is kept only for backward compatibility in Oracle 10g. Essentially it returns all the parameter values which were available through USERENV function.SYS_CONTEXT take two arguments: namespace and the associated parameter. Oracle provides built-in namespace USERENV which returns information about the current session. Most common examples are getting osuser or getting session user, NLS values, IP Address etc. for the current session. Here is an example for few of the parameter values.SQL> SELECT SYS_CONTEXT(’USERENV’,'SESSION_USER’) Session_User, 2 SYS_CONTEXT(’USERENV’,'LANGUAGE’) Language, 3 SYS_CONTEXT(’USERENV’,'NLS_DATE_FORMAT’) Date_Format, 4 SYS_CONTEXT(’USERENV’,'Module’) Module, 5 SYS_CONTEXT(’USERENV’,'Action’) Action 6 FROM DUAL; SESSION_USER LANGUAGE DATE_FORMAT MODULE ACTION ———— —————————— ———– ———- ———- SCOTT AMERICAN_AMERICA.WE8MSWIN1252 DD-MON-RR SQL*Plus As mentioned earlier, these are few of the parameters. For complete list of parameters refer to Oracle manual. Value for parameters ‘Module’ and ‘Action’ can be set using dbms_application_info package to track the activity more precisely in the session. We will cover it in detail in another blog entry.One can create user defined context using CREATE CONTEXT syntax. Specific attributes can also be assigned to the user defined context using DBMS_SESSION.set_context procedure. You can refer to Oracle SQL Reference manual for detailed explantion of how to create context and assign attribute to it. The session information can be useful for auditing purpose or for determining certain action based on certain parameter value. It also helps in determining the language specific parameters for current session....for more details Click here تم تعديل 4 أبريل 200916 سنة بواسطة TROYMAN تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.