12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Managing TablesTo include lowercase characters, special characters, or spaces in an object name, youmust enclose the name in quotation marks (" ") when you type it in a Name field in<strong>SQL</strong> <strong>Developer</strong>. Example: "My table"The following topics describe how to view, create, and manage the various types ofobjects in your database schemas:■■■■■Managing TablesManaging IndexesManaging ViewsManaging SequencesManaging Synonyms4.2 Managing TablesTables are the basic unit of data storage in an <strong>Oracle</strong> database. They hold alluser-accessible data. A table is two-dimensional object comprised of columns androws. For example the employees table includes (vertical) columns called first_name, last_name, and employee_id. Each (horizontal) row in the table contains avalue for employee name and Id number. The most common type of table in an <strong>Oracle</strong>database is a relational table.This topic contains the following topics:■ Column Data Types■ Column Default Values■ Ensuring Data Integrity With Constraints■ Column Constraints■ Table-Level ConstraintsSee Also:■■■<strong>Oracle</strong> Database Administrator's Guide for information on managingtables.<strong>Oracle</strong> Database Concepts for conceptual information on tablestypes.<strong>Oracle</strong> Database <strong>SQL</strong> Reference for the syntax required to create andalter tables.4.2.1 Column Data TypesData types are required elements that define the nature of the data to be stored in thecolumns of a table. Data types might include a value to indicate the longest value thatcan be placed in the column. When you create a table, you must specify a data type foreach of its columns. For a discussion of data types, see Data Types: Usage Information.These data types define the domain of values that each column can contain or eachargument can have. For example, DATE columns cannot accept the value February29 (except for a leap year) or the values 2 or SHOE. Each value subsequently placed ina column assumes the column data type. For example, if you insert 17-JAN-2004 intoa date column, then <strong>Oracle</strong> treats the 17-JAN-2004 character string as a date valueafter verifying that it translates to a valid date.4-2 <strong>SQL</strong> <strong>Developer</strong> Online Help

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

Saved successfully!

Ooh no, something went wrong!