Very Urgent!! Stored Procedure Problem!!!

Hi Friends,
I am in a great trouble!! I hv a procedure which has a print statement in it. Is it possible to capture or redirect the output of my print message???
Say, my procedure is like
create procedure MyProc as
select * from table1
print "Hello World!!"
goWhen I run my JDBC query thru CallableStatement my result set holds only the value of select query, but what my "Hello World!!" ??????
Thanks.
Kesavan.

Hi Kesavan,
PRINT is just an SQL*PLus command. If you want to capture your output you'll have to assign it to an OUT parameter in your stored procedure then return is that OUT parameter to your callableStatement.
Richard

Similar Messages

  • Re   Java Stored Procedure Problem

    Ben
    There appear to be some problem with the forum. It doesn't want to show my response to your post with the subject "Java Stored Procedure Problem". See the answer to this thread for an example of how to do this...
    Is there a SAX parser with PL/SQL??

    Ben
    There appear to be some problem with the forum. It doesn't want to show my response to your post with the subject "Java Stored Procedure Problem". See the answer to this thread for an example of how to do this...
    Is there a SAX parser with PL/SQL??

  • To connect a datablock to a query - stored procedure: problem

    I have the following table...
    CREATE TABLE I_TIPOLOGIA (
    CODICE NUMBER(6),
    DESCRIZIONE VARCHAR2(100),
    CONSTRAINT I_TIPOLOGIA_PK PRIMARY KEY (CODICE) );
    and the following package to connect a datablock to
    previous table with a stored procedure...
    CREATE or REPLACE PACKAGE DATABANKER_TIPOLOGIE AS
    TYPE TipTableOfRec IS TABLE OF I_TIPOLOGIA%ROWTYPE;
    PROCEDURE leggi(resultset IN OUT TipTableOfRec);
    END DATABANKER_TIPOLOGIE;
    CREATE or REPLACE PACKAGE BODY DATABANKER_TIPOLOGIE AS
    PROCEDURE leggi(resultset IN OUT TipTableOfRec) AS
    BEGIN
    SELECT * BULK COLLECT INTO resultset
    FROM I_TIPOLOGIA;
    END leggi;
    END DATABANKER_TIPOLOGIE;
    When I compile the form I receive in QUERY-PROCEDURE trigger
    en error 306: "number or type of arguments are wrong in POPULATE_BLOCK"
    I post the trigger auto generated by Forms Builder 6i...
    DECLARE
    bk_data DATABANKER_TIPOLOGIE.TIPTABLEOFREC;
    BEGIN
    DATABANKER_TIPOLOGIE.leggi3(bk_data);
    PLSQL_TABLE.POPULATE_BLOCK(bk_data, 'BLOCCO50'); -- <- error here
    END;
    How can I solve this problem? Maybe there is a bug?
    P.S. I'm using Oracle Database 9i

    CREATE or REPLACE PACKAGE DATABANKER_TIPOLOGIE AS
    TYPE TipTableOfRec IS TABLE OF I_TIPOLOGIA%ROWTYPE;
    PROCEDURE leggi(resultset IN OUT TipTableOfRec);
    END DATABANKER_TIPOLOGIE;I have solved with this replacement 1) -> 2)
    1) TYPE TipTableOfRec IS TABLE OF I_TIPOLOGIA%ROWTYPE;
    2) TYPE TipTableOfRec IS TABLE OF I_TIPOLOGIA%ROWTYPE
    INDEX BY BINARY_INTEGER;
    with 2) now works.
    Now I have stored-procedures for query, insert, delete
    and update.
    I have some problems with delete and update of the records
    because it seems that they are locked.
    I think that it is due to the absence of lock
    stored-procedure... there's someone that can help me with
    the lock SP implementation?

  • DBMS_JOB on Java Stored Procedure problem

    Hi all,
    (running on Oracle 9i : 9.2.0.7.0 64bit on HP/UX)
    I have a Java Stored procedure that reads a table
    One of the fields in this table is a CLOB containing some more SQL.
    We then executeQuery() that SQL (and e-mail the output).
    (Obviously I also have PL/SQL wrapper around it, which we'll call PROCNAME).
    For certain pieces of SQL, this second executeQuery() fails throwing ORA-00942, but only when run from a DBMS_JOB(!).
    Calling "CALL PROCNAME('argument')" from sqlplus/toad works fine, but setting "PROCNAME('argument')" to run as a DBMS Job fails on some SQL with the above error. (All as the same username).
    java.lang.StackTraceElement doesn't seem to exist in Oracle java, so the only error I have to go on is e.getMessage() from SQLExecption which returns:
    ORA-00942: table or view does not exist
    Any help at this strangeness would be appreciated!
    nic

    Hi Cris:
    May be is a problem of the effective user which is running the procedure.
    Which is the auth_id directive at the PLSQL call spec?
    Look at this example procedure UploadNews for example:
    http://dbprism.cvs.sourceforge.net/dbprism/cms-2.1/db/cmsPlSqlCode.sql?revision=1.21&view=markup
    this procedure calls to the cmsNews.doImport which is implemented as Java Stored Procedure.
    Also check if your loadjava operation is not using -definer flag.
    Best regards, Marcelo.

  • Java stored procedure problem(oracle db)

    HI,
    we have a java stored procedure with the following definition, and that works as we want it to:
    CREATE OR REPLACE FUNCTION processBulletin(in_varchar VARCHAR2) RETURN VARCHAR2
    AS LANGUAGE JAVA
    NAME 'JavaParser.Bufr_Ingest.processBulletin(java.lang.String) return java.lang.String';
    And the Java portion:
    public static String processBulletin(String in_bull)
    ... do something with in_bull
    The problem is that we've recently discovered that the 32767 size restiriction on the input parameter varchar2 is too small. I don't want to rewrite the entire Java procedure. I figured the simplest (or at least temporary)solution would be to have the Java procedure accept a CLOB, convert that clob to a string and continue as it would. I was hoping someone might be able to tell me if the following would be possible:
    CREATE OR REPLACE FUNCTION processBulletin(in_clob CLOB) RETURN VARCHAR2
    AS LANGUAGE JAVA
    NAME 'JavaParser.Bufr_Ingest.processBulletin(oracle.sql.CLOB) return java.lang.String';
    And the Java portion:
    public static String processBulletin(oracle.sql.CLOB in_clob)
    String in_bull = clob_in.getSubString(1, (int)clob_in.length());
    ... do something with in_bull
    Thanks

    I don't know about Java stored procedures, but in JDBC you usually use streams to work with CLOBS. Here's Oracle JDBC Developers Guide, Working with LOBs

  • Calling Stored Procedure problem

    Hi there,
    I got a little problem with a BizTalk solutions I am building with an Oracle DB (9i) as backend:
    I need to call a stored procedure which will export the data I need to get to an export-table. The call for the sp works fine but after the call succeeded I get empty results from within the export_table. If I use SQL developer a few seconds / mins later I get the results I wanted.
    So first question: If I call a sp without return params, is it possible that the .Net code just waits if the SP could successfully be called and then works on, or does it wait until the SP successfully finished it´s work and then works on?
    Second question: If it only waits until the SP could successfully be called, is there a way to wait until the SP has finished without changing the SP?
    Thanks for your help.
    René

    Hi,
    Calling a stored procedure is not asynchronous - that is, the stored procedure completes execution before control is returned to your application.
    If, for example, you have a multi-threaded application and call the stored procedure in a worker thread the primary thread may continue executing, but I'm not sure that is what you are doing.
    - Mark

  • Very Urgent?Facing Problems With Labels

    Hi All,
    It's Very Urgent,In My VC Application
    Label Have More Than 15 Characters
    I PUT Label Layout  To Long Label.
    My Label Name  online assignement date
    But Even Put Long Label, online ***.......
    Please Resolve The Problem ASAP.
    Thanks
    SubbaRao Chinta

    Hi Subbu,
    I told u already its an Know issue with Flex compiler ,Even u set the label to long label it will show u only short label.
    This issue is fixed with Flex2 compiler.
    Use Flex2 compiler for ur application then it will dispaly the total label u want display.
    Regards,
    Govindu

  • Stored Procedure Problem

    Hello,
    I have a stored procedure that I thought worked. but I am getting an error. Basically, what it does is accept some search terms and then based on whether a value has been passed (-1 is a non value for numbers and 'null' is a non value for varchar2 fields) it returns the matching rows.
    Here is the code for the stored procedure.
    CREATE OR REPLACE  PROCEDURE "SYSADM"."SP_SEARCH_BCRS"
    (  bcr_id_in in number,
        bcr_number_in in varchar2,
        agency_id_in in number,
        lead_analyst_id_in in number,
        programmer_analyst_id_in in number,
        functional_analyst_id_in in number,
        status_id_in in number,
        status_modifier_id_in in number,
        issue_numbers_in in varchar2,
        date_reported_in in varchar2,
        short_description_in in varchar2,
        order_by_in in varchar2,
        cursor_out out types.cursorType )
    AS
          mySQL varchar2(255);
          issue_numbers_and_clause varchar(1000);
          short_desc_and_clause varchar(1000);
    BEGIN
      mySQL := 'select ID, SHORT_DESC, AGENCY_ID, TO_CHAR(DATE_REPORTED, ''MM/DD/YYYY'') "DATE_REPORTED", BCR_NUMBER from bcrs where 1=1';
      IF (bcr_id_in > 0) THEN
        mySQL := mySQL || ' and id = ' || bcr_id_in;
      END IF;
      IF (bcr_number_in != 'null') THEN
        mySQL := mySQL || ' and bcr_number like ''' || UPPER(bcr_number_in) || '''';
      END IF;
      IF (agency_id_in > 0) THEN
        mySQL := mySQL || ' and agency_id = ' || agency_id_in;
      END IF;
      IF (lead_analyst_id_in > 0) THEN
        mySQL := mySQL || ' and lead_analyst_id = ' || lead_analyst_id_in;
      END IF;
      IF (programmer_analyst_id_in > 0) THEN
        mySQL := mySQL || ' and programmer_analyst_id = ' || programmer_analyst_id_in;
      END IF;
      IF (functional_analyst_id_in > 0) THEN
        mySQL := mySQL || ' and functional_analyst_id = ' || functional_analyst_id_in;
      END IF;
      IF (status_id_in > 0) THEN
        mySQL := mySQL || ' and status_id = ' || status_id_in;
      END IF;
      IF (status_modifier_id_in > 0) THEN
        mySQL := mySQL || ' and status_modifier_id = ' || status_modifier_id_in;
      END IF;
      IF (issue_numbers_in != 'null') THEN
        SP_BUILD_TEXT_SEARCH(issue_numbers_in, 'issue_numbers', issue_numbers_and_clause);
        mySQL := mySQL || issue_numbers_and_clause;
      END IF;
      IF (date_reported_in != 'null') THEN
        mySQL := mySQL || ' and date_reported > to_date(''' || date_reported_in || ''', ''MM/DD/YYYY'')-7 and date_reported < to_date(''' || date_reported_in || ''', ''MM/DD/YYYY'')+7 and 1=1 ';
      END IF;
      IF (short_description_in != 'null') THEN
        SP_BUILD_TEXT_SEARCH(short_description_in, 'short_desc', short_desc_and_clause);
        mySQL := mySQL || short_desc_and_clause;
      END IF;
      -- add the order by clause
      mySQL := mySQL || ' order by ' || order_by_in;
      open cursor_out for mySQL;
    END;When I call it like this:
    variable people_out refCursor;
    set serveroutput on
    set autoprint on
    execute sp_search_bcrs(-1, 'null', -1, -1, -1, -1, -1, -1, 'null', 'null', 'null', 'date_reported', :people_out);I get this...
    PL/SQL procedure successfully completed.
            ID SHORT_DESC                                                                                                                                              AGENCY_ID DATE_REPOR BCR_NUMBER
            31 Use this BCR for Testing                                                                                                                                       13 02/12/2004 STW-0034
            32 adf adsf d as dfsd f                                                                                                                                           13 02/16/2004 STW-0035
            33 This is my new BCR                                                                                                                                             12 02/18/2004 HHS-0021
            34 J.P.'s New BCR                                                                                                                                                 13 02/20/2004 STW-0036
    4 rows selected.But when I call it like this...
    variable people_out refCursor;
    set serveroutput on
    set autoprint on
    execute sp_search_bcrs(-1, 'null', -1, -1, -1, -1, -1, -1, 'null', '02/03/2004', 'null', 'date_reported', :people_out);I get this.
    BEGIN sp_search_bcrs(-1, 'null', -1, -1, -1, -1, -1, -1, 'null', '02/03/2004', 'null', 'date_reported', :people_out); END;
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYSADM.SP_SEARCH_BCRS", line 70
    ORA-06512: at line 1
    ERROR:
    ORA-24338: statement handle not executed
    SP2-0625: Error printing variable "people_out"Note that the only difference is that I am passing a date in the second call for the "date_reported" parameter.
    What I have already tried:
    -- commenting out the statement that appends the order by clause....the sp runs fine.
    -- commenting out the statement that appends the date_reported clause...the sp runs fine.
    I am pretty sure it is a problem with the line that has the date compare for the 'date_reported' but neither my DBA or I can find it.
    I would much appreciate any eyes looking at this.
    Thanks.
    James.

    I must admit, why pass 4-char 'null' instead of just null?
    procedure my_proc (p1 varchar2) is
    begin
    if p1 is not null then -- not if p1 != 'null'
    do something
    end if;
    end;
    execute my_proc (null) not my_proc ('null')
    Also, your params that are meant to be dates, I might just declare them as type date (Oracle will convert) or use a temp date var and to_date(p_date) into it, then add -7 or +7 to the temp date var and to_char that on your output.
    Your proc requires 13 params, 12 IN and 1 OUT (I never use keyword IN if in only). I would put the OUT param first, followed by all 'required' IN parameters, lastly the remaining optional parameters (if any). This may not apply to your example but you can specify a default value for any optional parameters at the end.
    procedure my_proc (p1 varchar2,
    p2 varchar2,
    p3 varchar2 default 'X',
    p4 varchar2 default null);
    execute my_proc ('a','b','c','d')
    execute my_proc ('a','b','c')
    execute my_proc ('a','b')
    Some people prefer overloading.

  • Cursor with nested query in stored procedure problem

    Hello
    I'm trying to declare the folowing (example) cursor in a stored procedure in Oracle 8i:
    CURSOR RECORDS IS SELECT d.DUMMY, (SELECT dd.DUMMY FROM dual dd) FROM dual d;
    The nested part "(SELECT d.DUMMY FROM dual)" is not alowed, while the same query runs outside the stored procedure. Can someone explain why this is not alowed and how to solve the problem whitout rewriting the query?
    Tom

    When i run the same code in SQL plus:
    SQL> declare
    2 CURSOR RECORDS IS SELECT d.DUMMY, (SELECT dd.DUMMY FROM dual dd) FROM dual d;
    3 begin
    4 null;
    5 end;
    6 /
    CURSOR RECORDS IS SELECT d.DUMMY, (SELECT dd.DUMMY FROM dual dd) FROM dual d;
    FOUT in regel 2:
    .ORA-06550: line 2, column 36:
    PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
    ( - + mod not null others <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string>
    ORA-06550: line 2, column 66:
    PLS-00103: Encountered the symbol "FROM" when expecting one of the following:
    ; return returning and or
    Different versions of Oracle?

  • MS SQL Stored Procedure problem

    Hi,
    I am using BO XI R2, Crystal Report XI and MS SQL Database.
    I found a strange error when generating the report using my java application if the crystal report is using MS SQL stored procedure. The error encountered :
    com.crystaldecisions.sdk.occa.managedreports.ras.internal.a: Cannot open report document. --- Custom table prefix specified in the InfoStore does not exist.  This is a configuration problem. Please contact your system administrator.
    cause:com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Custom table prefix specified in the InfoStore does not exist.  This is a configuration problem. Please contact your system administrator.---- Error code:-2147467259 Error code name:failed
    detail:Cannot open report document. --- Custom table prefix specified in the InfoStore does not exist.  This is a configuration problem. Please contact your system administrator.
    This is when the code executed is:
       reportClientDocument = reportAppFactory.openDocument(report, 0, Locale.ENGLISH);
    If the report does not use the stored procedure, it's ok.
    If i run the report  (with stored procedure) from CMC using the default table prefix (in database config tab), it's able to generate the report.
    If i select custom table prefix and specify the custom table prefix value with the same value as in the default table prefix, it could not generate the report and error stated that the table could not be found.
    Please enlighten me if you have use MS SQL database for reporting with BO XI R2.
    Thanks.

    That means it's not a SDK-specific error. 
    Once it's resolved in InfoView, it'll likely be resolved with your app.
    You might want to open a support case with SAP. 
    Sincerely,
    Ted Ueda

  • Oracle Stored Procedure problem

    I am upgrading to Coldfusion 8 from MX. I currently have a
    program that accesses Oracle 10g using a stored procedure call
    (cfstoredproc). It works on MX but not on 8. I can do regular
    queries to the Oracle database successfully. Here is the error
    mesage I'm receiving:
    Error Executing Database Query.
    [Macromedia][Oracle JDBC Driver][Oracle]ORA-06550: line 1,
    column 18: PLS-00222: no function with name 'EVENT_COUNT' exists in
    this scope ORA-06550: line 1, column 7: PL/SQL: Statement ignored
    Any ideas?

    Perhaps this tech note may point to one possible solution.
    Updated
    DataDirect JDBC drivers (version 3.5)
    The following problems are corrected in this release of the
    DataDirect drivers.
    Oracle
    61145 - Oracle 10g R2 not supported. cfstoredproc calls that
    return result sets hang the server with both the 3.3, 3.4 and 3.5
    drivers until this version. The 3.5 build 13 drivers support Oracle
    10g R2.
    Phil

  • Collable statement and stored procedure problem

    Hi,
    I am using a collable statement to execute a stored procedure.
    The stored procedure is a bit complex since it uses a function to retrieve sequence nextval (newId),
    than insert a row and returns the newId.
    Anyway, I checked it with sql plus and it works, but when trying to execute it from my Java code, I get the following error message:
    java.sql.SQLException: ORA-06550: line 1, column 33:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in mod not range rem => ..
    <an exponent (**)> <> or != or ~= >= <= <> and or like
    between is null is not || indicator is dangling
    The symbol ")" was substituted for ";" to continue.
    Anyone can help?
    Thanks,
    Michal

    My PL/SQL code:
    CREATE OR REPLACE FUNCTION getNotifSeq RETURN NUMBER
    IS
    newId NUMBER;
    BEGIN
         SELECT NOTIFICATION_SEQ.NEXTVAL INTO newId FROM DUAL;
    RETURN newId;
    END;
    run
    CREATE OR REPLACE PROCEDURE insertNotifMsg (
    sentBy IN VARCHAR,
    subject IN VARCHAR,
    msg IN VARCHAR,
    newId OUT NUMBER)
    IS
    BEGIN
    newId := getNotifSeq;
    INSERT INTO NOTIFICATIONS(NOTIF_ID,SENT_BY,SUBJECT,MSG)
    VALUES(newId,sentBy,subject,msg);
    END insertNotifMsg;
    run;
    My Java code to call the procedure:
    try
    conn = myDBconn.getConnection();
    CallableStatement callStmt = conn.prepareCall("{call insertNotifMsg(?,?,?,?}");
    callStmt.setString(1,notif.getSentBy());
    callStmt.setString(2,notif.getSubject());
    callStmt.setString(3,notif.getMsg());
    callStmt.registerOutParameter(4, Types.INTEGER);
    ResultSet rs = callStmt.executeQuery();
    if (!rs.next()) {
    throw new SQLException("ERROR: Notification was not inserted into database!");
    long newId = callStmt.getInt(4);
    callStmt.close();
    notif.setNotifId(newId);
    conn.commit();
    callStmt.close();
    finally
    myDBconn.closeConnection(conn);
    Thanks,
    Michal

  • Oracle9iAS MapViewer - Stored Procedure problem

    Can anyone help - I would like to use stored procedures within MapViewer <jdbc_query> element to define themes dynamically. My attempts thus far have been unsuccessful, for example:
    <themes>
    <theme name="theme1">
    <jdbc_query
    spatial_column="lon_lat_hgt"
    render_style="MDSYS:C.RED"
    jdbc_host="my_host"
    jdbc_port="1521"
    jdbc_sid="csd"
    jdbc_srid="8307"
    jdbc_mode="thin"
    jdbc_user="scott"
    jdbc_password="tiger">select adwg_l16_utils_map.ADWG_L16_UTILS.J35_GET_AOI(swLon,swLat,neLon,neLat) from j35</jdbc_query>
    </theme>
    </themes>
    (the above attempt was created along the lines of 'select sysdate from dual')
    Is this approach valid (if so could someone provide an example), or will I have to construct a 'standard' select query.
    Thanks in advance.

    Chris,
    It should be possible, provided that:
    1. your stored procedure returns objs of type sdo_geometry.
    2. you use a column alias so that it is the same as the value of your "spatial_column" attribute.
    3. if you do not specify the "asis" attribute in the jdbc_query element, then you must have a spatial index on the geometry column; in your case you may want to creat a function-based spatial index on your procedure. Please refer to the Spatial user's guide for how to achieve that.
    thanks,
    lj

  • Visual FoxPro stored procedure problem

    I search this forum and I found people who got the same as I do, but can't find any answer/solution.
    I tried to call Visual FoxPro stored procedure, without argument and result,
    CallableStatement cs = con.prepareCall ("call strproc ()");
    cs.execute();
    but I always received an exception Exception : java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error or access violation
    Can anybody help me.

    Try with,
    CallableStatement cs = con.prepareCall ("{call strproc ()}");
    cs.execute(); // or cs.executeUpdate();
    Sudha

  • Help Stored Procedure Problems

    I'm trying to call this stored procedure from VB to update an existing table where its fields match fields in another table.
    I always get a created with erros noteification when I create the procedure.
    CREATE OR REPLACE PROCEDURE smsattribute AS
    CURSOR mycursor IS
    SELECT SMSCOMMODITY.NOMENCLATURE, SMSSIGN_ATTRIBUTE.SIGN_TYPE FROM SMSCOMMODITY, SMSSIGN_ATTRIBUTE WHERE SMSCOMMODITY.WIDTH = SMSSIGN_ATTRIBUTE.WIDTH and SMSCOMMODITY.HEIGHT = SMSSIGN_ATTRIBUTE.HEIGHT and SMSCOMMODITY.NOMENCLATURE = SMSSIGN_ATTRIBUTE.SIGN_
    BEGIN
    FOR SMSSIGN_ATTRIBUTE.SIGN_TYPE IN mycursor LOOP
    UPDATE mycursor SET SMSSIGN_ATTRIBUTE.SIGN_TYPE = SMSCOMMODITY.NOMENCLATURE;
    END LOOP;
    END smsattribute;
    I've also tried the following stored procedure...with the same results.
    UPDATE SMSSIGN_ATTRIBUTE.SIGN_TYPE = (SELECT SMSCOMMODITY.NOMENCLATURE FROM SMSCOMMODITY, SMSSIGN_ATTRIBUTE WHERE SMSCOMMODITY.WIDTH = SMSSIGN_ATTRIBUTE.WIDTH and SMSCOMMODITY.HEIGHT = SMSSIGN_ATTRIBUTE.HEIGHT and SMSCOMMODITY.NOMENCLATURE = SMSSIGN_ATTRIBUTE.SIGN_TYPE)
    Thanks
    null

    Brendan,
    It is not clear what you are trying to do. Ignoring all the syntax errors, it appears that you are trying to update the smsattribute table by setting the sign_type column equal to the value in the nomenclature column of the commodity table where the two are already equal. In other words, you are attempting to create a procedure that will never update anything.
    We would be able to help you more if you would state in words exactly what column of what table you are trying to update with the value from what column of what other table, under what conditions.
    The script below is an example of the general syntax for an update statement like the one you are trying to create. If you will replace table_to_update with the name of the table that you are trying to update and replace column_to_update_to with the name of the column that you want to update and replace table_to_compare with the name of the table that you want to compare to and replace column_to_update_from with the name of the column that you expect to get the value to put in the column_to_update_to and replace each comparison_column with the columns that must already have the same values before updating, then you can use this script.
    UPDATE table_to_update
    SET column_to_update_to =
    (SELECT table_to_compare.column_to_update_from
    FROM table_to_compare
    WHERE table_to_compare.comparison_column1 = table_to_update.comparison_column1
    AND table_to_compare.comparison_column2 = table_to_update.comparison_column2
    AND table_to_compare.comparison_column3 = table_to_update.comparison_column3)
    WHERE (table_to_update.comparison_column1, table_to_update.comparison_column2, table_to_update.comparison_column3) IN
    (SELECT table_to_compare.comparison_column1, table_to_compare.comparison_column2, table_to_compare.comparison_column3
    FROM table_to_compare);
    If you want to create a procedure that performs the update, then just insert the same update statement between begin and end, like this:
    CREATE OR REPLACE PROCEDURE update_table
    AS
    BEGIN
    UPDATE table_to_update
    SET column_to_update_to =
    (SELECT table_to_compare.column_to_update_from
    FROM table_to_compare
    WHERE table_to_compare.comparison_column1 = table_to_update.comparison_column1
    AND table_to_compare.comparison_column2 = table_to_update.comparison_column2
    AND table_to_compare.comparison_column3 = table_to_update.comparison_column3)
    WHERE (table_to_update.comparison_column1, table_to_update.comparison_column2, table_to_update.comparison_column3) IN
    (SELECT table_to_compare.comparison_column1, table_to_compare.comparison_column2, table_to_compare.comparison_column3
    FROM table_to_compare);
    END update_table;
    Barbara
    null

Maybe you are looking for

  • My VGA output using Mini DisplayPort to VGA doesn't work.

    Since I upgraded to Mavericks, my VGA output using Mini DisplayPort to VGA doesn't work. When I was using Mountain Lion, as soon as you plugged in the Mini adaopter into the mini display port, the screen would shrink and format to where it would proj

  • Custom color for navigation bar

    I am struggling to find a way to make my navigation bar color different that supported colors. SDK supports default style i.e. blue, black and black opaque. I know it is possible cause there so many apps doing so. For example midomi. I have searched

  • Rendered video's file size is HUGE!!!

    Hello! I have a little problem with AE and I hope that there's something wrong with it. I had a 30 sec video which I only did some minor color correction and other small tweaks in. Before this, the file was 6 mb big, when I rendered it, it was 7.30 G

  • To validate a email

    how can we validate a email is valid or not?

  • Libdb-4.6.so download for Solaris 10?

    Hello, Can anyone tell me where I might be able to download libdb-4.6.so? I have an application that is requireing this, but I don't know where to find it, and it's not installed on my system. Thanks! Mike