Book Image

Oracle Database XE 11gR2 Jump Start Guide

By : Asif Momen
Book Image

Oracle Database XE 11gR2 Jump Start Guide

By: Asif Momen

Overview of this book

Oracle Database XE 11gR2 is an excellent beginner-level database and is a great platform to learn database concepts. "Oracle Database XE 11gR2 Jump Start Guide" helps you to install, administer, maintain, tune, back up and upgrade your Oracle Database Express Edition. The book also helps you to build custom database applications using Oracle Application Express.Using this book, you will be able to install Oracle Database XE on Windows/Linux operating system.This book helps you understand different database editions and it guides you through the installation procedure with the aid of screenshots. You will learn to interact with the database objects. You will gain a solid understanding of stored sub-programs which is followed by an introduction to Oracle Application Express (APEX). Solid database performance tuning strategies are also discussed in this book followed by backup and recovery scenarios. All in all, "Oracle Database XE 11gR2 Jump Start Guide" delivers everything that you should know to get started with Oracle Database administration.
Table of Contents (20 chapters)
Oracle Database XE 11gR2 Jump Start Guide
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface

Understanding DML statements


Data Manipulation Language (DML) statements are used to manipulate data in existing tables. INSERT, UPDATE, and DELETE are examples of DML statements. We use INSERT to add a new record to the table, UPDATE to modify one or more columns of a table, and DELETE to remove a record from the table.

The following is an example of an INSERT statement. We insert a new record in the regions table of the HR schema:

SQL> INSERT INTO regions VALUES (5, 'Australia');
1 row created.
SQL> COMMIT;
Commit complete.
SQL>

An example of the UPDATE statement is shown next, where we modify the value of region_name from Australia to Aus and NZ. This is done as follows:

SQL> UPDATE regions SET region_name = 'Aus and NZ' Where region_id = 5;
1 row updated.
SQL> COMMIT;
Commit complete.
SQL>

The following is an example of the DELETE statement. We remove the newly added record from the regions table as follows:

SQL> DELETE FROM regions Where region_id = 5;
1 row deleted...