Lesson 7 Data Manipulation & Transaction Control

  • DML: INSERT, UPDATE, DELETE
  • Oracle9i MERGE
  • DDL TRUNCATE command
  • Logical Units of Work
  • Transaction control

    Inserting Rows

    Rounding on Insert

    Returning Values from DML

    Continuation of Notes

    Inserting Multiple Rows

    9i Multi-Table INSERT…

    …9i Multi-Table INSERT

    Deleting Rows

  •  Caution: a delete with no where clause deletes all rows from the specified table

    TRUNCATE Command

    Updating a Single Row

    Updating Multiple Rows

    MERGE statement...

    ...MERGE Statement

    Continuation of Notes

    Transaction Control

    COMMIT & ROLLBACK

    Transaction Control Who Sees What?

    Transaction Control Locking Mechanisms

    Savepoints

    Commits in SQL*Plus

    Setting AUTOCOMMIT

  • AUTOCOMMIT will cause SQL*Plus to COMMIT after each SQL DML command

    Data Manipulation Workshop

    Continuation of Notes