12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.3.2.1 Normal ........................................................................................................................... 4-74.3.2.2 Ascending and Descending ........................................................................................ 4-74.3.2.3 Column and Function-based....................................................................................... 4-74.3.2.4 Single Column and Concatenated ............................................................................. 4-74.3.3 Guidelines for Creating Indexes........................................................................................ 4-84.3.3.1 Index the Correct Tables and Columns..................................................................... 4-84.3.3.2 Limit the Number of Indexes for Each Table ........................................................... 4-94.3.3.3 Choose the Order of Columns in Composite Indexes............................................. 4-94.3.3.4 Drop Indexes That Are No Longer Required ....................................................... 4-104.4 Managing Views ...................................................................................................................... 4-104.5 Managing Sequences ............................................................................................................... 4-104.6 Managing Synonyms............................................................................................................... 4-115 Data Types: Usage Information5.1 Overview of Data Types ............................................................................................................ 5-15.2 Storing Character Data............................................................................................................... 5-15.2.1 What are the Character Data Types? ................................................................................ 5-15.2.2 Choosing Between the Character Data Types ................................................................. 5-25.3 Storing Numeric Data ................................................................................................................ 5-25.3.1 What Are the Numeric Data Types?................................................................................. 5-25.3.2 Using NUMBER Data Types.............................................................................................. 5-35.3.3 Using Floating-Point Number Formats............................................................................ 5-45.3.3.1 BINARY_FLOAT .......................................................................................................... 5-55.3.3.2 BINARY_DOUBLE....................................................................................................... 5-55.4 Storing Datetime Data................................................................................................................ 5-55.4.1 Using DATE and TIMESTAMP Data Types.................................................................... 5-55.4.1.1 Using the DATE Data Type ........................................................................................ 5-55.4.1.2 Using the TIMESTAMP Data Type............................................................................ 5-65.4.1.3 Using the TIMESTAMP WITH TIME ZONE Data Type........................................ 5-65.4.1.4 Using the TIMESTAMP WITH LOCAL TIME ZONE Data Type......................... 5-65.4.1.5 Representing the Difference Between Datetime Values ......................................... 5-65.4.2 Manipulating the DATE and TIME Formats ................................................................... 5-66 <strong>SQL</strong>: Usage Information6.1 Overview of <strong>SQL</strong>......................................................................................................................... 6-16.1.1 Features of <strong>SQL</strong> .................................................................................................................... 6-16.1.2 Types of <strong>SQL</strong> Statements.................................................................................................... 6-26.2 Retrieving Data With Queries................................................................................................... 6-26.2.1 Displaying Data Using the SELECT Statement............................................................... 6-26.2.2 Using Character Literals in <strong>SQL</strong> Statements.................................................................... 6-36.2.2.1 Quoting Character Literals.......................................................................................... 6-36.2.3 Using a Column Alias to Change Headings When Selecting Data .............................. 6-46.2.4 Restricting Data Using the WHERE Clause..................................................................... 6-46.2.5 Sorting Data Using the ORDER BY Clause...................................................................... 6-56.2.6 Displaying Data From Multiple Tables ............................................................................ 6-66.3 Manipulating Data With <strong>SQL</strong> Statements............................................................................... 6-76.3.1 Adding Data With the INSERT Statement....................................................................... 6-7vi

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

Saved successfully!

Ooh no, something went wrong!