01.09.2016 Views

Beginning Oracle Database 11g Administration From Novice to Professional

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 2 SQL AND PL/SQL 27<br />

The INSERT Statement<br />

Listing 2-5 shows the statements that can be used <strong>to</strong> create the data required for<br />

the examples in the first chapter. Note that character strings, such as the supplier names<br />

and part names used in the example, are enclosed with single quote marks.<br />

Listing 2-5. DML Commands <strong>to</strong> Populate the Supplier, Part, and Quote Tables<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

The UPDATE Statement<br />

The statement enables us <strong>to</strong> specify a subset of data rows and instructions for<br />

modifying them. In Listing 2-6—an example of how arithmetic can be used in SQL statements—all<br />

price quotes from TOOL TIME, INC. are being increased by 10 percent.<br />

Listing 2-6. DML Command <strong>to</strong> Modify the Values of Data Items

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!