[svn] 3291: Update example to use swfobject.

Revision: 3291
Author: [email protected]
Date: 2008-09-22 08:46:23 -0700 (Mon, 22 Sep 2008)
Log Message:
Update example to use swfobject. Update text of link in app to Download Flex 4. It was Flex 2.
Modified Paths:
flex/sdk/trunk/frameworks/javascript/FABridge/samples/srcview/SourceIndex.xml
flex/sdk/trunk/frameworks/javascript/FABridge/samples/srcview/SourceTree.html
Added Paths:
flex/sdk/trunk/frameworks/javascript/FABridge/samples/srcview/swfobject.js
Removed Paths:
flex/sdk/trunk/frameworks/javascript/FABridge/samples/srcview/AC_OETags.js

Hi
please replace this text (which is not records but just text, and therefore we can not query it):
TransactionID  ProductID       Quantity        QuantityOnHand
1                          1                     
2                     ?  2
2                          1                     
3                     ? 5 = 3+2
3                          1                     
1                     ? 6 = 5 + 1
4                          1                     
9                     ? 15 = 6 + 9
with a DDL+DML queries to help us help you.
>> DDL+DML are queries to create your relevant table and a query to insert the sample data.
Thanks
[Personal Site] [Blog] [Facebook]

Similar Messages

  • [svn:fx-trunk] 5577: Update FxButton example to use new namespaces.

    Revision: 5577
    Author: [email protected]
    Date: 2009-03-26 10:20:03 -0700 (Thu, 26 Mar 2009)
    Log Message:
    Update FxButton example to use new namespaces.
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxButtonExamp le.mxml

    Revision: 5577
    Author: [email protected]
    Date: 2009-03-26 10:20:03 -0700 (Thu, 26 Mar 2009)
    Log Message:
    Update FxButton example to use new namespaces.
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxButtonExamp le.mxml

  • [svn:fx-trunk] 5578: Update ToggleButton example to use new namespaces

    Revision: 5578
    Author: [email protected]
    Date: 2009-03-26 10:26:40 -0700 (Thu, 26 Mar 2009)
    Log Message:
    Update ToggleButton example to use new namespaces
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxToggleButto nExample.mxml

    Revision: 5578
    Author: [email protected]
    Date: 2009-03-26 10:26:40 -0700 (Thu, 26 Mar 2009)
    Log Message:
    Update ToggleButton example to use new namespaces
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/asdoc/en_US/mx/components/examples/FxToggleButto nExample.mxml

  • Can we have an example of using update, insert, and delete stored procedure

    I would like to see an example of using retrieve (return resultset), update, insert, and delete stored procedures in JSF. I need to see syntax how JSF can call those stored procedures. This option is absolutely important when building web-application. Currently, I haven't found resource to do for this purpose yet. The database can be any such Oracle, DB2, pointbase, etc that support stored procedures.
    Anyone knows?
    Thanks,
    Tue Vu

    Hi ttv,
    I asked around a bit and here's some more info:
    To bind a ResultSet to a read only Data Table component just set the "value" property of the Data Table component to point at it, and JSF will synthesize a DataModel around it.
    * Note that because we can't call the stored procedure at design time, Creator can't do the fancy table layout stuff it does for rowsets. You'll need to hand craft the columns just like the Google Client example.
    * As I mentioned previously, you will have to manually code the stored procedure access in your java code - see the code clip I mentioned in previous reply (and if this is via a stored procedure, then any textbook about JDBC will undoubtedly have examples). Simplest way might be a getter method on the page bean that contains the call to the stored procedure and returns the resulting ResultSet object.
    * Don't forget to close the result set - we typically do this at the end of the request (i.e. add a close in the afterRenderResponse() method.
    * Don't throw exceptions - or if you have to, make sure you close the result set in a finally clause (thrown exceptions bypass the afterRenderResponse method in the lifecycle).
    * You give up on the caching provided by our RowSetDataModel (which can't be connected to a ResultSet even manually), so I would recommend that you only use datatables to display the data and then go to a single row page to do edits/deletes (similar to the TwoPage example in AppModel and the Update, Insert Delete tutorial).
    And yes please do submit an example - we will gladly post it!!! :) The best way to submit this kind of thing would be through:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    on the right side, Related Links, under Creator Heros, click Submit Content and there you can send it in!
    Hope this helps!
    Val

  • [svn] 3813: Update J2EE Webtier Compiler to use SWFObject2 based HTML templates.

    Revision: 3813
    Author: [email protected]
    Date: 2008-10-22 09:13:37 -0700 (Wed, 22 Oct 2008)
    Log Message:
    Update J2EE Webtier Compiler to use SWFObject2 based HTML templates. JSP tags still use the old AC_OETags.js templates since that would be a more complicated change and it is not worth the effort right now.
    QE: Yes
    Doc: Is there any?
    Checkintests: Pass
    Reviewer: Pete
    Bugs: SDK-17699
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17699
    Modified Paths:
    flex/sdk/trunk/modules/webtier/servlet/build.xml
    flex/sdk/trunk/modules/webtier/servlet/src/java/flex/webtier/server/j2ee/html/MxmlRendere r.java
    flex/sdk/trunk/modules/webtier/servlet/src/java/flex/webtier/util/RendererUtil.java
    flex/sdk/trunk/webapps/webtier/WEB-INF/flex/flex-webtier-config.xml
    flex/sdk/trunk/webapps/webtier/build.xml
    Added Paths:
    flex/sdk/trunk/modules/webtier/servlet/src/java/flex/webtier/util/index.template.vm
    Property Changed:
    flex/sdk/trunk/modules/webtier/servlet/src/java/flex/webtier/util/

    Hi,
    Can you mention the eclipse version you are using? And the platform in which you are trying to build?
    I feel its always better to be platform specific when you go in for headless build. I can see that the configs value in your properties file is "configs=*,*,*". Try changing it to appropriate value and build your product. For example, I use "configs=win32, win32, x86" for building my product in 32-bit windows machine.

  • [svn:fx-3.x] 9493: Applying patch (SDK-22435) submitted by Aaron Boushley which updates ObjectUtil to use toXMLString rather than toString for XML objects .

    Revision: 9493
    Author:   [email protected]
    Date:     2009-08-23 16:09:56 -0700 (Sun, 23 Aug 2009)
    Log Message:
    Applying patch (SDK-22435) submitted by Aaron Boushley which updates ObjectUtil to use toXMLString rather than toString for XML objects.
    QE notes:  None
    Doc notes: None
    Bugs: SDK-13919
    Reviewer: N/A
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22435
        http://bugs.adobe.com/jira/browse/SDK-13919
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/utils/ObjectUtil.as

  • [svn:fx-trunk] 8399: Update WindowedSystemManager to use ChildManager.

    Revision: 8399
    Author:   [email protected]
    Date:     2009-07-06 14:15:40 -0700 (Mon, 06 Jul 2009)
    Log Message:
    Update WindowedSystemManager to use ChildManager.
    WindowedSystemManager:
    Add new childManager property. Implement rawChildren_* methods using the new childManager.
    ChildManager:
    Change systemManager from type SystemManager to ISystemManager since WindowedSystemManager is not of type SystemManager. Use the array access operator to access the methods/properties that are in SystemManager but not in ISystemManager.
    QE Notes: none.
    Doc Notes: none.
    Bugs: SDK-21673
    Reviewer: Alex
    tests: checkintests, components/Alert
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21673
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.a s

    Gordon, it looks like its been a while since you made this post.  Not sure how valid it is now...   I am particularly interested in the LigatureLevel.NONE value.  It seems that it is no longer supported.
    How do I turn of ligatures in the font rendering?
    My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase.  Is there any way (even roundabout) to turn ligatures off in flash?
    Thanks,
    Om

  • [svn:bz-3.x] 17461: Update example jgroups-tcp.xml file for JGroups 2.9. 0 on the BlazeDS 3.x branch.

    Revision: 17461
    Revision: 17461
    Author:   [email protected]
    Date:     2010-08-24 10:10:38 -0700 (Tue, 24 Aug 2010)
    Log Message:
    Update example jgroups-tcp.xml file for JGroups 2.9.0 on the BlazeDS 3.x branch. Fixed a problem where the bind_addr property was set to a port number instead of an address. Updated the file to the version we have on BlazeDS/trunk which has descriptions of what the various settings do. 
    Modified Paths:
        blazeds/branches/3.x/resources/clustering/2.9.0/jgroups-tcp.xml

    Revision: 17461
    Revision: 17461
    Author:   [email protected]
    Date:     2010-08-24 10:10:38 -0700 (Tue, 24 Aug 2010)
    Log Message:
    Update example jgroups-tcp.xml file for JGroups 2.9.0 on the BlazeDS 3.x branch. Fixed a problem where the bind_addr property was set to a port number instead of an address. Updated the file to the version we have on BlazeDS/trunk which has descriptions of what the various settings do. 
    Modified Paths:
        blazeds/branches/3.x/resources/clustering/2.9.0/jgroups-tcp.xml

  • [svn] 3316: Switch html wrappers over to using swfobject.

    Revision: 3316
    Author: [email protected]
    Date: 2008-09-23 11:55:06 -0700 (Tue, 23 Sep 2008)
    Log Message:
    Switch html wrappers over to using swfobject. There is only one copy of the template file index.template.html and swfobject.js in templates\swfobject. For now, until I9 when we get sync'ed with FlexBuilder, the build will generate each flavor of the template and deposit them in the usual directory structure, client-side-detection, express-installation, no-player-detection, and *-with-history directories, as expected by FlexBuilder. The old tokens which FlexBuilder and the html-wrapper task use to substitute values are still being used.
    QA: Steve Erat has a matrix of browsers and configurations which he has already tested. A few problems were found with browser history management which did not have anything to do with this change.
    Modified Paths:
    flex/sdk/trunk/build.xml
    flex/sdk/trunk/frameworks/build.xml
    Added Paths:
    flex/sdk/trunk/templates/build.xml
    flex/sdk/trunk/templates/swfobject/playerProductInstall.swf
    Removed Paths:
    flex/sdk/trunk/frameworks/javascript/FABridge/samples/srcview/SourceTree.html
    flex/sdk/trunk/frameworks/javascript/FABridge/samples/srcview/swfobject.js
    flex/sdk/trunk/templates/client-side-detection/AC_OETags.js
    flex/sdk/trunk/templates/client-side-detection/index.template.html
    flex/sdk/trunk/templates/client-side-detection-with-history/AC_OETags.js
    flex/sdk/trunk/templates/client-side-detection-with-history/history/
    flex/sdk/trunk/templates/client-side-detection-with-history/index.template.html
    flex/sdk/trunk/templates/express-installation/AC_OETags.js
    flex/sdk/trunk/templates/express-installation/index.template.html
    flex/sdk/trunk/templates/express-installation/playerProductInstall.swf
    flex/sdk/trunk/templates/express-installation-with-history/AC_OETags.js
    flex/sdk/trunk/templates/express-installation-with-history/history/
    flex/sdk/trunk/templates/express-installation-with-history/index.template.html
    flex/sdk/trunk/templates/express-installation-with-history/playerProductInstall.swf
    flex/sdk/trunk/templates/no-player-detection/AC_OETags.js
    flex/sdk/trunk/templates/no-player-detection/index.template.html
    flex/sdk/trunk/templates/no-player-detection-with-history/AC_OETags.js
    flex/sdk/trunk/templates/no-player-detection-with-history/history/
    flex/sdk/trunk/templates/no-player-detection-with-history/index.template.html
    Property Changed:
    flex/sdk/trunk/templates/client-side-detection/
    flex/sdk/trunk/templates/client-side-detection-with-history/
    flex/sdk/trunk/templates/express-installation/
    flex/sdk/trunk/templates/express-installation-with-history/
    flex/sdk/trunk/templates/no-player-detection/
    flex/sdk/trunk/templates/no-player-detection-with-history/

    If you have metalink.oracle.com access please download <Note:266439.1>
    This has all the relevant information.
    Regards
    Grant Ronald
    Forms Product Management

  • [svn:fx-trunk] 12664: asdoc updates; new examples; updated examples; bug fixes

    Revision: 12664
    Revision: 12664
    Author:   [email protected]
    Date:     2009-12-08 12:39:06 -0800 (Tue, 08 Dec 2009)
    Log Message:
    asdoc updates; new examples; updated examples; bug fixes
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/primitives/examples/LineExampl e.mxml
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/IGraphicElement.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/BitmapImage.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Graphic.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Line.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Rect.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RectangularDropShadow.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicEleme nt.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/StrokedEleme nt.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/asdoc/en_US/spark/primitives/examples/Rectangula rDropShadowExample.mxml

    Richard,
    I have just applied patch to upgrade from Portal 3.0.9 to 3.0.9.8.1 (Patch applied to loginserver and portal schema) and the External Applications that were previously set up have gone from the portlet.
    Does this relate to your note at the bottom:
    "Minor issues with Bulk action. 1840420 CUSTOM WRITTEN EXTERNAL AUTH MODULE NEED TO BE UPDATED AFTER 3.0.9 UPGRADE SSOXOID.PKB DOESN'T LOAD.
    External authentication modules that were written before 3.0.9 need to be updated after upgrading to 3.0.9. ssoauthx.pks is updated in 3.0.9 and contains additional routines that need to be implemented." ??
    If I go to the "Login Server Administration" portlet and select the link "Administer External Applications" I get a list of 5 External Applications that have previously been set up.
    If I go back to the Home Page and select "customize" on the "External Applications" portlet I get the message "Your Login Server administrator has not registered any external applications".
    Does that mean I should just run 'ssoauthx.pks' & 'ssoxoid.pkb' or do I need to do something else ??
    Thanks
    Simo

  • How to update sales orders using B1WS in SAP 8.8 PL18

    Hello all.
    We are having a problem updating sales orders using Sap Business One Web Service ( B1WS ).
    We are running SBO 8.8 PL18, MS-SQL 2008, and all is fine when using the SBO client.
    But when it comes to updating sales orders through B1WS we just cannot get it to work.
    We can add new orders easily without problems. Updating orders always gives this error:
    \[ORDR.PayDuMonth\]\[line: 0\] , 'Field cannot be updated (ODBC -1029)'
    We have checked and verified multiple times that our setup is correct.
    Also the WDSL files are verified.
    We can update orders just fine using the sboclient.
    And using B1WS we can basically do everything, besides updating.
    We have also tried this on different company db's, so we are quite sure this is not
    something related to some general setting we missed, but who knows?
    We have tried different ways to "assemble" the order before updating, but it always
    ends with the above error.
    Here is an example of one of the tests, where we load an order by docentry,
    increment the quantity of all open lines by '1', and then try to update it.
            protected void Page_Load(object sender, EventArgs e)
                // First we login
                string sessionId = "";
                LoginService.LoginService l_login = new LoginService.LoginService();
                LoginService.LoginDatabaseType l_dbtype = LoginService.LoginDatabaseType.dst_MSSQL2008;
                LoginService.LoginLanguage _lang = LoginService.LoginLanguage.ln_English;
                string _server = "SAP-8_8PL18";
                string _licserver = "SAP-8_8PL18:30000";
                string _db = "my_test_company";
                string _user = "manager";
                string _pass = "********";
                try
                    sessionId = l_login.Login(_server, _db, l_dbtype, true, _user, _pass,
                               _lang, true, _licserver);
                catch (Exception ex)
                    Response.Clear();
                    Response.Write(ex.Message);
                    Response.End();
                if (sessionId == "")
                    Response.Clear();
                    Response.Write("No sessionId");
                    Response.End();
                // We are logged in and have a sessionId
                // Now load a valid open order by docentry
                try
                    OrdersServiceRef.OrdersService orderService = new OrdersServiceRef.OrdersService();
                    orderService.MsgHeaderValue = new OrdersServiceRef.MsgHeader();
                    orderService.MsgHeaderValue.SessionID = sessionId;
                    orderService.MsgHeaderValue.ServiceName = OrdersServiceRef.MsgHeaderServiceName.OrdersService;
                    orderService.MsgHeaderValue.ServiceNameSpecified = true;
                    OrdersServiceRef.DocumentParams docParams = new OrdersServiceRef.DocumentParams();
                    docParams.DocEntry = 31; // Docentry of a known open order
                    docParams.DocEntrySpecified = true;
                    OrdersServiceRef.Document order = orderService.GetByParams(docParams);
                    OrdersServiceRef.DocumentDocumentLine line = null;
                    for (int i = 0; i < order.DocumentLines.Length; i++)
                        line = order.DocumentLines<i>;
                        if (line.LineStatus == OrdersServiceRef.DocumentDocumentLineLineStatus.bost_Open)
                            line.Quantity += 1;
                    orderService.Update(order);
                catch (System.Web.Services.Protocols.SoapException ex)
                    Response.Clear();
                    Response.Write(ex.Message);
                    Response.End();
                catch (Exception ex)
                    Response.Clear();
                    Response.Write(ex.Message);
                    Response.End();
                Response.Clear();
                Response.Write("All OK");
                Response.End();
    I hope that someone has an idea as to why this happens.
    The customer often changes quantity or adds lines on their orders,
    and the only way to solve it so far has been to make a new order and
    close the old one.
    Thanks in advance
    J. Thomsen

    Hi,
    Welcome you post on the forum.
    Have you checked if you only update a specific line instead of a loop?
    Thanks,
    Gordon

  • Time Management Operation to Update Absence Quota Used

    Hi Gurus,
    Is there any standard operation available to update absence quota used. I'm already using UPDTQA to update Absence Quota Entitlement, but is there any standard operation tha i can use to Update Absence Quota used.
    Thanks!!
    Rajiv
    Edited by: rajiv patel on Mar 27, 2008 6:38 PM

    Hi,
            I have many doubts about Quota generation with time evaluation. I need to discount two hours,for example,to a certain quota type at one particular situations and employees.
    I think I can do it using function QUOTA and operation UPDTQ. To do it I have to select the option "Increase" or "Replace" in table V_556A_B,isn´t it? .But my problem is that I need firstly a quota entitlement generated with RPTQTA00,for example:
    •I have to generate a entitlement of 30 hours for all employees of a certain personal division ("No generate" selected in V_556A_B and RPTQTA00 ).
    •After that,when I run time evaluation on fridays for example,I have to discount 2 hours of this entitlement of 30 (Increase or replace in V_556A_B,and use then Quota and UPDTQ).
    My real problem is to generate the quota by RPTQTA00 because I´ve checked "Increase"or "Replace" (V_556A_B) to permit quota generation (modification) with Time Evaluation.
    I hope my explanation was ok and somebody can help me please.
    Thanks a lot

  • How can I download itunes when I get the following errors...have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up..ituneshelper did not install correctly error 7

    How can I download itunes when I get the following errors  ..ituneshelper did not install correctly error 7..I .have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up.
    This has been a problem for 6 weeks now, I retry when I have time and patience and use my other laptop which is also Windows 7 and runs with no problem.
    Every attempt fails when all seems fine on the desktop and I try to log on to Itunes I get the errors.
    Any help greatly appreciated.
    billymac

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (If this won't uninstall press on)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
    tt2

  • Possible to get javascript control after a static embed? Without using swfobject?

    I am in a situation where I have an html page with a static embed of StrobeMediaPlayback.swf. Looks like it is version 2.0 if that is important.
    By static, I mean it does not use swfObject to embed the player. The <object> tag and all the parameters are hard-coded into th html. I can not change this embed.
    I would like to be able to seek the video using javascript. Is this possible and how can I do it? All off the examples I have found rely on using javascript to embed the player
    Thanks in advance

    I would expect you should be able to find it in the dehydration store using the orabpel users credentials but not sure which table - cube_scope perhaps.
    To complicate matters, you'll probably find it's stored as blob, so take a look at http://nandol.com/491 to determine how to convert this.

  • Code to update a table using sqlldr

    Hi all,
    can anybody give the code to update a table using sqlldr with an example
    thank you

    You want add the new line and modified the existing line (based on empno) from file e:\scripts\sql\emp2_ext.dat into table emp2 :
    7782,CLARK,MANAGER,7839,09/06/81,80000,,10
    8000,ORACLE,DATABASE,,11/02/07,99999,,20Then :
    SQL> conn system/mypwd
    Connected.
    SQL>
    SQL> create directory my_dir as 'e:\scripts\sql';
    Directory created.
    SQL>
    SQL> grant read,write on directory my_dir to scott;
    Grant succeeded.
    SQL>
    SQL> conn scott/mypwd
    Connected.
    SQL> create table emp2_ext
      2  (EMPNO    NUMBER(4),
      3   ENAME    VARCHAR2(10),
      4   JOB      VARCHAR2(9),
      5   MGR      NUMBER(4),
      6   HIREDATE DATE,
      7   SAL      NUMBER(7,2),
      8   COMM     NUMBER(7,2),
      9   DEPTNO   NUMBER(2)
    10  )     
    11  ORGANIZATION EXTERNAL
    12  ( TYPE ORACLE_LOADER
    13    DEFAULT DIRECTORY my_dir
    14    ACCESS PARAMETERS
    15    ( records delimited by newline
    16      badfile my_dir:'emp2_ext.bad'
    17      logfile my_dir:'emp2_ext.log'
    18      fields terminated by ','
    19      missing field values are null
    20      ( empno, ename, job, mgr, hiredate char date_format date mask "dd/mm/yy",
    21        sal, comm, deptno
    22      )
    23    ) LOCATION ('emp2_ext.dat')
    24  ) ;
    Table created.
    SQL>
    SQL> select * from emp2_ext;
         EMPNO ENAME      JOB              MGR HIREDATE        SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 09/06/81      80000                    10
          8000 ORACLE     DATABASE             11/02/07      99999                    20
    SQL> select * from emp2;
         EMPNO ENAME      JOB              MGR HIREDATE        SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 09/06/81      24500                    10
          7839 KING       PRESIDENT            17/11/81      50000                    10
          7934 MILLER     CLERK           7782 23/01/82      13000                    10
    SQL> merge into emp2 a
      2  using (select * from emp2_ext) b
      3  on    (a.empno=b.empno)
      4  when matched then update set a.ename=b.ename,
      5                               a.job=b.job,
      6                               a.mgr=b.mgr,
      7                               a.hiredate=b.hiredate,
      8                               a.sal=b.sal,
      9                               a.comm=b.comm,
    10                               a.deptno=b.deptno
    11  when not matched then insert (a.empno, a.ename, a.job, a.mgr, a.hiredate, a.sal, a.comm, a.deptno)
    12                        values (b.empno, b.ename, b.job, b.mgr, b.hiredate, b.sal, b.comm, b.deptno);
    2 rows merged.
    SQL>
    SQL> select * from emp2;
         EMPNO ENAME      JOB              MGR HIREDATE        SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 09/06/81      80000                    10 --modified line
          7839 KING       PRESIDENT            17/11/81      50000                    10
          7934 MILLER     CLERK           7782 23/01/82      13000                    10
          8000 ORACLE     DATABASE             11/02/07      99999                    20 --added line
    SQL> HTH,
    Nicolas.
    Well, Hans has already give good explanation with docs links...
    Message was edited by:
    N. Gasparotto

Maybe you are looking for