Function Overloading concept in PL/SQL

hi all,
do we have Function Overloading concept in PL/SQL? If so, how to implement it? can anybody help me out with an example?

Yep.
SQL> create or replace
  2  package test_package as
  3
  4     function blah(param IN NUMBER) return number;
  5     function blah(param IN DATE) return number;
  6     function blah(param IN VARCHAR2) return number;
  7
  8     -- or
  9
10     function blah(param IN NUMBER) return date;
11     function blah(param IN NUMBER) return varchar2;
12     function blah(param IN NUMBER) return char;
13
14  end test_package;
15  /
Package created.

Similar Messages

  • Function overloading concepts

    I am a little doubtful about the output of the following code:
    public class Test {
         void c(Object a){}
         void c(Float a){}
         void c(Number a){}
         void m(){
              c(null);
         public static void main(String[] args) {
              Test t = new Test();
              t.m();
    I an not able to find out the reason why the Float version of the c() will be called?

    DeltaGeek wrote:
    Hendawy wrote:
    The reason behind this is that a null value is a void reference to, i.e. a pointer to nothing. Since it is a pointer (address), it is actually a number. That's why the float version is best matching in your code.Wow...just....not even close.
    When determining what method to call, the compiler will find the most specific method it can that matches the arguments you pass in. Since you're passing in an uncast null, it can match any reference type.
    In this case, Float happens to be the most specific reference type it could use. This is also why adding an overload for Integer will cause a compilation error, as you now have multiple methods with the maximum level of specificity.
    Also note that casting the null to one of Float or Integer would resolve the compile error but hide the design problem.But i have a doubt; if i follow your approach then this code must work:
    public class Test {
         void c(Object a){}
         void c(Float a){}
         void c(Number a){}
         void c(DerivedInteger a){}
         void m(){
              c(null);
         public static void main(String[] args) {
              Test t = new Test();
              t.m();
    class MyInteger extends Number{
         public double doubleValue() {
              return 0;
         public float floatValue() {
              return 0;
         public int intValue() {
              return 0;
         public long longValue() {
              return 0;
    class DerivedInteger extends MyInteger{
    because U is the most specific one,

  • Will ellipsis contradict function overloading

    Recently I was reading the Oracle tech magazin. There was an article in it about the next java major release ( J2SE 1.5 tiger). It said the tiger release will support the ellipsis ("...") concept for parameter passing. I have seen this in C/C++ for passing variable number of arguments in functions like printf() or scanf(). I am not sure has there such a concept already in java but if we are going to have such a mechanism, wont that affect the function overloading concept? Please post ur opinions
    thanks
    boolee

    The method will have a signature ending in (I think the current spec says) Object[], so it shouldn't affect the method overloading much.

  • Function overloading advantage..

    Hi,
    One of the package feature is function overloading i.e same name objects with different parameters or different datatype parameters.
    how does it(function overloading) increase the performance ?
    what are the benefits with function overloading ?
    Thanks in advance.
    RP

    how does it(function overloading) increase the performance ?It doesn't.
    what are the benefits with function overloading ?Consider this:
    SQL> CREATE OR REPLACE PACKAGE pkg AS
      2     PROCEDURE print(p IN VARCHAR2);
      3     PROCEDURE print(p IN DATE, msk IN VARCHAR2 := 'DD-MON-YYYY');
      4     PROCEDURE print(p IN NUMBER);
      5     PROCEDURE print(p IN VARCHAR2, totem IN VARCHAR2);
      6  END;
      7  /
    Package created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY  pkg AS
      2   PROCEDURE print(p IN VARCHAR2) IS
      3   BEGIN
      4    dbms_output.put_line(p||'!');
      5   END;
      6   PROCEDURE print(p IN DATE, msk IN VARCHAR2 := 'DD-MON-YYYY' ) IS
      7   BEGIN
      8    print(to_char(p, msk));
      9   END;
    10   PROCEDURE print(p IN NUMBER) IS
    11   BEGIN
    12    print(to_char(p));
    13   END;
    14   PROCEDURE print(p IN VARCHAR2, totem IN VARCHAR2) IS
    15   BEGIN
    16    print(totem||' '||p);
    17   END;
    18  END;
    19  /
    Package body created.
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL> exec pkg.print(user)
    B!
    PL/SQL procedure successfully completed.
    SQL> exec pkg.print(sysdate)
    07-MAR-2006!
    PL/SQL procedure successfully completed.
    SQL> exec pkg.print(sysdate, 'HH24:MI:SS')
    11:18:59!
    PL/SQL procedure successfully completed.
    SQL> exec pkg.print(1234)
    1234!
    PL/SQL procedure successfully completed.
    SQL> exec pkg.print(user, '>>>')
    B!PL/SQL procedure successfully completed.
    SQL> exec pkg.print(to_char(sysdate), 'HH24:MI:SS')
    HH24:MI:SS 07-MAR-06!
    PL/SQL procedure successfully completed.
    SQL> I can pass any value into my package without having to worry about its datatype. Similarly I can pass different numbers of arguments into the procedure without worrying. Of course, a similar effect can be gained from using default values but we don't always want that.
    Incidentally, note what happened when I passed in a date as a character string.
    Cheers, APC

  • Function Overloading in PL/SQL

    Hi Guyz,
    I have 2 questions regarding function overloading.
    1) Is it necessary for the functions to be inside a package to perform function overloading ?
    2) I have 2 functions :-
    a) function check_hello( P_INPUT1 VARCHAR2, P_INPUT2 NUMBER) RETURN BOOLEAN
    b) function check_hello( P_INPUT1 VARCHAR2, P_INPUT2 NUMBER) RETURN VARCHAR2
    The difference is the return type . I dont think this is possible since the signature of the arguments are the same. I just need to confirm that its not possible.
    Thanks.

    Hi,
    user3913664 wrote:
    Hi Guyz,
    I have 2 questions regarding function overloading.
    1) Is it necessary for the functions to be inside a package to perform function overloading ?Yes; stand-alone functions cannot be overloaded.
    2) I have 2 functions :-
    a) function check_hello( P_INPUT1 VARCHAR2, P_INPUT2 NUMBER) RETURN BOOLEAN
    b) function check_hello( P_INPUT1 VARCHAR2, P_INPUT2 NUMBER) RETURN VARCHAR2
    The difference is the return type . I dont think this is possible since the signature of the arguments are the same. I just need to confirm that its not possible.Exactly. How could you, the system, or anyone else determine which one to use?
    Give them different names, or add another argument if you really want them to have the same name.

  • Doubt in Overloading Concept in Packages

    Hi,
    I have two Stored Procedures are inside a package
    sp_mem(mCursor REFCURSOR Datatype,MemberId INTEGER);
    sp_mem(mCursor REFCURSOR Datatype, mEmailId INTEGER);
    In the Above Procedures if the second Parameter is Member Id then the first SP will be executed.
    In the Above Procedures if the Second Parameter is MemEmailId then the Second SP will be Executed.
    This is the normal OverLoading Concept inside the package. But for me, i am returning the Recordset using a RefCursor.
    I just want to know it is possible for returning the recordset using ref cursor with the overloading concept for both the SP.
    Thanks,
    Murali.V

    Hello
    You need to be careful with this type of overloading. Overloading is generally based around the position and data types of the parameters being supplied which are used to identify the "signature" of the particular procedure to call i.e.
    sp_myproc(ref cursor, integer)
    sp_myproc(ref cursor, date)
    sp_myproc(ref cursor, varchar2)
    sp_myproc(ref cursor, varchar2, integer)
    etc etc
    When you have 2 procedures that have the same signature, unless you specify the name of the parameter, there is no way to determine which procedure to call:
    tylerd@DEV2> CREATE OR REPLACE PACKAGE pkg_test_overload
      2  IS
      3
      4     PROCEDURE sp_mem(mCursor sys_refcursor,MemberId INTEGER);
      5     PROCEDURE sp_mem(mCursor sys_refcursor, mEmailId INTEGER);
      6
      7  END;
      8  /
    Package created.
    tylerd@DEV2>
    tylerd@DEV2> CREATE OR REPLACE PACKAGE BODY pkg_test_overload
      2  IS
      3
      4     PROCEDURE sp_mem(mCursor sys_refcursor,MemberId INTEGER)
      5     IS
      6
      7     BEGIN
      8
      9             NULL;
    10
    11     END;
    12
    13     PROCEDURE sp_mem(mCursor sys_refcursor, mEmailId INTEGER)
    14     IS
    15
    16     BEGIN
    17
    18             NULL;
    19
    20     END;
    21
    22  END;
    23  /
    Package body created.
    Package body created.
    tylerd@DEV2> var mycursor refcursor
    tylerd@DEV2> var memberid number
    tylerd@DEV2> exec pkg_test_overload.sp_mem(:mycursor,:memberid)
    BEGIN pkg_test_overload.sp_mem(:mycursor,:memberid); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00307: too many declarations of 'SP_MEM' match this call
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    tylerd@DEV2> exec pkg_test_overload.sp_mem(:mycursor,MemberId=>:memberid)
    PL/SQL procedure successfully completed.
    tylerd@DEV2> exec pkg_test_overload.sp_mem(:mycursor,mEmailId=>:memberid)
    PL/SQL procedure successfully completed.To me, using named notation with overloading kind of defeats part of the objective...I'm not saying it's completely wrong, as sometimes I guess it's unavoidable, but I'd review the design carefully :-)
    HTH
    David
    Message was edited by:
    David Tyler
    Oops, copied the wrong bit of the output! :-)

  • To_numer function return error in pl/sql

    Hello,
    I don't have a prob when running select to_number('1234.56') from dual, the numer contains digit decimal
    But this stm return error Invalid number in procedure unless I use to_number('1234.56','9999999.99')
    Please help me out.
    Do I have to set parameter in DB ?
    BTW: my NLS_NUMERIC_CHARACTER is set to '.,'
    Thanks.

    to_numer function return error in pl/sql
    hlthanh wrote:
    Hello,
    I don't have a prob when running select to_number('1234.56') from dual, the numer contains digit decimal
    But this stm return error Invalid number in procedure unless I use to_number('1234.56','9999999.99')
    Please help me out.
    Do I have to set parameter in DB ?
    BTW: my NLS_NUMERIC_CHARACTER is set to '.,'
    Thanks.Handle:      hlthanh
    Status Level:      Newbie
    Registered:      Mar 7, 1999
    Total Posts:      94
    Total Questions:      60 (38 unresolved)
    so many questions & so few answers.
    How SAD!

  • Concept between MS SQL and Oracle

    hi, everyone, i am very new for Oracle. Reading some books and confuse about some base concepts:
    in MS SQL world, you can install multiple INSTANCE on a physical server, inside each INSTANCE, you can create multiple DATABASEs, each DATABASE has it owned data\transaction log file on disk.
    In the Oracle world, my understand is, INSTANCE = memory structure + physical database file (which pretty close to MS SQL identification). similar to MS SQL, you can have multiple INSTANCEs on each physical server. but which one is the 'DATABASE' in oracle world? The closest one i think is TABLESPACE. I can assign one or multiple physical data file for each TABLESPACE. but all the TABLESPACE place the redo log file inside the same undo TABLESPACE? also, for each application, i have to create one or more TABLESPACE inside a INSTANCE(that's what i usually do in MS SQL)?
    thank you for your help. please forgive me if my question is too silly.
    Edited by: user3614365 on Jun 14, 2012 2:57 PM

    please forgive me if my question is too silly.Firs of all, your questions are not silly at all. You can get better understanding of one product by setting analogies and comparisons with a product you are familiar with. I used same method when I learned about MS SQL comparing it with Oracle.
    So, welcome on Oracle board!
    in MS SQL world, you can install multiple INSTANCE on a physical server, you can have multiple instances of Oracle, belonging to same or separate Oracle Home on same physical machine.
    inside each INSTANCE, you can create multiple DATABASEs, In Oracle instance you can have only one database. That is how it is.
    each DATABASE has it owned data\transaction log file on disk.Even in MS SQL there can be multiple data files per database.
    >
    In the Oracle world, my understand is, INSTANCE = memory structure + physical database file (which pretty close to MS SQL identification). similar to MS SQL, you can have multiple INSTANCEs on each physical server.
    >
    yes
    >
    but which one is the 'DATABASE' in oracle world? The closest one i think is TABLESPACE. I can assign one or multiple physical data file for each TABLESPACE. but all the TABLESPACE place the redo log file inside the same undo TABLESPACE?
    >
    Here is little similarity between Oracle TABLESPACE and MS SQL database.
    In MS SQL Database has not only files associated with it, it has its own security and piece of data dictionary. It can have its own collation, you can detach it from one instance and attach to another, you can back it up separately, etc...
    I would say MS DB is more "standalone and self-containig" unit, comparing to Oracle TS.
    Oracle TS is a way of organizing data files and setting some default common storage properties for tables and other segments contained in TS.
    Oracle TS do not have separate security and data dictionary. Normally TS cannot be detached from one instance and attached to another. Though, there are special type of TS - transportable tablespace, which can be viewed as being a little bit close to what MS DB is.
    Anyway Oracle TS is not even close thing to MS DB.
    And it does not need to be. It has a totally different purpose.
    also, for each application, i have to create one or more TABLESPACE inside a INSTANCE(that's what i usually do in MS SQL)?You do not have to. But you better to do this way, from a data organization perspective. To make things look nicely organized.
    Sometimes one application may use multiple TS, for example when it needs different block size for some tables.
    You also can share TS between multiple apps, as you can do it with MS DB.
    What else is different?
    In Oracle there are no separation between logins and db users. It is one entity - USER. It has its security settings and may have its database objects.
    In Oracle can be only one schema per user, named same as user. Basically it is same thing - user and schema is same thing, and created and managed by same command CREATE/ALTER USER.
    However when we talk about storage and a place where objects belong to we say SCHEMA.
    When we talk about security and an owner where objects belong to - we say USER. :)
    Schema is like users Home in OS. What user creates belongs to its "home" - the schema. And the user is owner of it.
    If one user creates something in other's schema that thing will belong to that other's schema, and that another user will be owner, not to the user that called CREATE statement.
    However one user can change its current schema for the current session, just to avoid implicitly specifying another schema as a prefix for objects of that another schema.
    CONNECT scott
    SELECT * FROM joe.emp;
    ALTER SESSION SET CURRENT_SCHEMA = joe;
    SELECT * FROM emp;
    In MS SQL schemas are more similar to directories, there can be objects of different users in same schema, and objects of same user in different schemas.
    In Oracle there is DB Link which is similar to Linked Server.
    When called, DB Link is specified after the object name, separated by @.
    SELECT * FROM emp@anotherDB;
    That was most significant differences.
    Oh yes, Oracle is a versioning engine, and MS SQL is locking engine, though it can be any starting from recent.

  • Function overloading in flex?

    Hi
    Is it possible to function overloading in flex?
    Any send me example.
    Regards
    D.Mahesh Babu

    ActionScript aims to follow the EcmaScript 4 language specification which does not include method overloading. The two have diverged somewhat because EcmaScript 4 is still in a proposal stage and is subject to change. Read more here:
    http://en.wikipedia.org/wiki/ECMAScript
    A proposed EcmaScript feature called generic functions may offer capabilties similar to method overloading. It is possible such a feature may find its way into ActionScript 4, but I'm not aware of any official announcements to that effect.

  • Regarding Function Module concept

    Hi All,
    Is the Function Module concept meant only for modularity or something to do with the performace also. Please clarify this.
    Thank you
    Satya Priya

    Hi Satya,
                 Function Modules  is used for modularity & performance both.
    In case you dont have a standard extractor suiting to your needs....you need to do complex selects(involves several tables based on your requirement rather than just a table or view selection) , transform your data(manpuliate your data..)....and pass it through data packets..
                          If the join condition is not possible in the view .then we go with Function module.
                 The function module must meet the requirements of a specific interface. The system checks both in Customizing as well as when you use a method in layout, whether the function module is active in the system and whether it meets the requirements of the interface.
    Reward points if helpful.
    Regards,
    Hemant.

  • ECM functionality and concept...........?

    Hello gurus,
    I am in sap functional testing.
    In 1 case, I created change number 123 for perticular material say X (HALB). Now in MM01, I am creating material Y (FERT) by giving same change nomber as 123. But problem is that , after entering the data , system is changing the name of given material Y to X as per change number given.
    Now my doubt is that, shal i consider it as right concept of ECM and move forward or I need to create seperate change number for seperate matl...........?
    I am not aware about ECM functionality and concept.
    Anyone can clear my query?
    Appreciate your help.
    Regards,
    Shamsher

    You cannot use same material No. for more than one material, for another material you need to use different No.
    In your case, when you put the same no. 123 in mm01, system is thinking you are trying to extend the material already created with no. 123 and is acting accordingly for extending material. We extend material already created to other plant or different view which were not already created for material through mm01. For material change we use mm02.
    Edited by: Afshad Irani on Jun 8, 2010 4:06 PM

  • Overloaded parameters in PL/SQL packages

    Will this driver support calls to packaged stored procedures with overloaded parameters?

    Here's a quick and dirty sample:
    Database:
    create or replace package overload_test as
      function overloaded (p_in in varchar2) return varchar2;
      function overloaded (p_in in number) return varchar2;
    end;
    create or replace package body overload_test as
      function overloaded (p_in in varchar2) return varchar2 is
      begin
        return 'You called the varchar2 overload with: ' || p_in;
      end;
      function overloaded (p_in number) return varchar2 is
      begin
        return 'You called the number overload with: ' || to_char(p_in);
      end;
    end;
    /C# code:
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace OverloadTest
      class Program
        static void Main(string[] args)
          // connect to local db using o/s authentication
          OracleConnection con = new OracleConnection("User Id=/; Enlist=false; Pooling=false");
          con.Open();
          // create the command object
          OracleCommand cmd = con.CreateCommand();
          cmd.CommandText = "overload_test.overloaded";
          cmd.CommandType = CommandType.StoredProcedure;
          // create the return value parameter
          OracleParameter p_retval = new OracleParameter(":p_retval", OracleDbType.Varchar2, 80, "", ParameterDirection.ReturnValue);
          cmd.Parameters.Add(p_retval);
          // create the input parameter for the number overload
          OracleParameter p_in = new OracleParameter(":p_in", OracleDbType.Decimal, 42, ParameterDirection.Input);
          cmd.Parameters.Add(p_in);
          // call the number overloaded stored proc
          cmd.ExecuteNonQuery();
          // write out the return value
          Console.WriteLine(p_retval.Value);
          // change the input parameter for the varchar2 overload
          p_in.OracleDbType = OracleDbType.Varchar2;
          p_in.Value = "Forty-Two";
          // reset parameters
          cmd.Parameters.Clear();
          cmd.Parameters.Add(p_retval);
          cmd.Parameters.Add(p_in);
          // call the varchar2 overloaded stored proc
          cmd.ExecuteNonQuery();
          // write out the return value
          Console.WriteLine(p_retval.Value);
          // clean up
          p_in.Dispose();
          p_retval.Dispose();
          cmd.Dispose();
          con.Dispose();
          // prevent console window from closing automatically when running from vs env
          Console.WriteLine("ENTER to continue...");
          Console.ReadLine();
    }Output on my system:
    You called the number overload with: 42
    You called the varchar2 overload with: Forty-Two
    ENTER to continue...Hope that helps a bit,
    Mark

  • Function overloading ... Is there any benefit ?

    Where is the benefit if I write this ..
    using function overloading :
    add(Integer, Integer);
    add(String, String);
    instead of
    addInt(Integer, Integer);
    addStr(String, String);
    Is there any benefit ?

    why you are saying "add() *does not contain an argument type name*"?The statement that you are still claiming to find unclear was 'embed the argument type names in the function name'. The function name 'add()' doesn't do that. Your alternative function name 'addInt() does do that. 'Int'. A type name. Embedded in the function name.
    Am I missing something ?Yes. I don't see how you can agree that add() is shorter than addInt() without also seeing that the difference consists precisely of the embedded type name. Frankly, I don't think you have been reading very carefully.

  • Function Overloading in sql

     is there any way by which one can over load function with out affecting any change in .net code or sql proc or function which refer that function

    No, there is no way to "overload" a function.
    However, what you are describing can be done by creating a layer of stored procs and views the .Net code calls instead of direct accessing the database.  This gives the SQL developer the ability to change the physical database and change the layer
    to match the same output, without changing the .Net code.
    See "Stored procedures vs dynamic SQL":
    http://msdn.microsoft.com/en-us/library/ee658127.aspx

  • Pl/sql function overload package program and how to execute

    --creation overload package
    create or replace package pkg_overload is
    procedure get_emp(p_empid in number,p_empsal out number);
    procedure get_emp(p_ename in varchar2, p_empsal out number);
    end;
    -- define its body
    create or replace package body pkg_overload is
    procedure get_emp(p_empid in number,p_empsal out number) is
    begin
    select sal
    into p_empsal
    from emp
    where empno=p_empid;
    end;
    procedure get_emp (p_ename in varchar2,p_empsal out number) is
    begin
    select sal
    into p_empsal
    from emp
    where ename=p_ename;
    end;
    end pkg_overload;
    /* output of this :PACKAGE pkg_overload compiled
    Warning: execution completed with warning
    -- My question is about the warning and how to execute it
    --I tried that way to execute that program
    /*variable g_sal number;
    execute pkg_overload.get_emp(77934,:g_sal);
    RESULT
    Error starting at line 911 in command:
    execute pkg_overload.get_emp(77934,:g_sal)
    Error report:
    ORA-06550: line 1, column 7:
    PLS-00905: object SUBHAJIT.PKG_OVERLOAD is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    emp table code
    -- File created - Thursday-April-12-2012
    -- DDL for Table EMP
    CREATE TABLE "SUBHAJIT"."EMP"
    (     "EMPNO" NUMBER(4,0),
         "ENAME" VARCHAR2(10 BYTE),
         "JOB" VARCHAR2(9 BYTE),
         "MGR" NUMBER(4,0),
         "HIREDATE" DATE,
         "SAL" NUMBER(7,2),
         "COMM" NUMBER(7,2),
         "DEPTNO" NUMBER(2,0)
    ) SEGMENT CREATION IMMEDIATE
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "USERS" ;
    REM INSERTING into SUBHAJIT.EMP
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7369,'SMITH','CLERK',7902,to_date('17-DEC-80','DD-MON-RR'),800,null,20);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7499,'ALLEN','SALESMAN',7698,to_date('20-FEB-81','DD-MON-RR'),1600,300,30);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7521,'WARD','SALESMAN',7698,to_date('22-FEB-81','DD-MON-RR'),1250,500,30);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7566,'JONES','MANAGER',7839,to_date('02-APR-81','DD-MON-RR'),2975,null,20);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7654,'MARTIN','SALESMAN',7698,to_date('28-SEP-81','DD-MON-RR'),1250,1400,30);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7698,'BLAKE','MANAGER',7839,to_date('01-MAY-81','DD-MON-RR'),2850,null,30);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7782,'CLARK','MANAGER',7839,to_date('09-JUN-81','DD-MON-RR'),2450,null,10);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7788,'SCOTT','ANALYST',7566,to_date('09-DEC-82','DD-MON-RR'),3000,null,20);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7839,'KING','PRESIDENT',null,to_date('17-NOV-81','DD-MON-RR'),5000,null,10);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7844,'TURNER','SALESMAN',7698,to_date('08-SEP-81','DD-MON-RR'),1500,0,30);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7876,'ADAMS','CLERK',7788,to_date('12-JAN-83','DD-MON-RR'),1100,null,20);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7900,'JAMES','CLERK',7698,to_date('03-DEC-81','DD-MON-RR'),950,null,30);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7902,'FORD','ANALYST',7566,to_date('03-DEC-81','DD-MON-RR'),3000,null,20);
    Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7934,'MILLER','CLERK',7782,to_date('23-JAN-82','DD-MON-RR'),1300,null,10);
    -- Constraints for Table EMP
    ALTER TABLE "SUBHAJIT"."EMP" MODIFY ("EMPNO" NOT NULL ENABLE);
    Edited by: 923746 on Apr 12, 2012 1:18 PM

    >
    Warning: execution completed with warning
    >
    The package compiled with warnings. Post the exact error message.
    The code compiled with no errors for me in the SCOTT schema using that EMP table.

Maybe you are looking for

  • How to duplicate a page in pages 5

    How can I duplicate a page in Pages 5? In the before version it was possible by right click on the mouse or cmd click? There are really missing some cool things in Pages 5.

  • My iphone 4 is not syncing the music from my itunes library.

    I tried to restore the iphone and everything else has been backed up, but the music is not syncing. I have the "automatically sync" option checked, and have unchecked the "manually manage music and videos" option unchecked. (due to prior suggestions.

  • Please help me on this program

    I wrote a binary search tree to store the name, birthday, and phone number. But everytime I tried to insert some values, I got the java.lang.nullpoint.exception: Please check out the program: BinaryNode: public class BinaryNode{ protected String name

  • Help with my screen

    when i turn on my ipod mini it shows a blank screen but when i hold down the menu botton to turn on my bank light it comes up help?? i dropped it on the side of my bed=[

  • Photoshop CS5 color problem

    Hello Photoshoppers, I hope you guys can help me out with a problem i am facing for a few months now. I still haven't found a solution for it. I was buzzy with a tutorial from the megazine "Webdesigner". The left side is the document i just started.