Overview Tables Views Indexes Constraints Triggers Procedures Functions Packages Sequences Index

OE


Description  Columns  Primary key  Check constraints  Foreign keys  Unique keys  Indexes  Options  Referenced by  Triggers  

CUSTOMERS

Description

Contains customers data either entered by an employee or by the customer him/herself over the Web.

Columns

Column Datatype Nullable Default value Comment
CUSTOMER_ID NUMBER(6,0) N   Primary key column.
CUST_FIRST_NAME VARCHAR2(20) N   NOT NULL constraint.
CUST_LAST_NAME VARCHAR2(20) N   NOT NULL constraint.
CUST_ADDRESS CUST_ADDRESS_TYP(1) Y   Object column of type address_typ.
PHONE_NUMBERS PHONE_LIST_TYP(147) Y   Varray column of type phone_list_typ
NLS_LANGUAGE VARCHAR2(3) Y    
NLS_TERRITORY VARCHAR2(30) Y    
CREDIT_LIMIT NUMBER(9,2) Y   Check constraint.
CUST_EMAIL VARCHAR2(30) Y    
ACCOUNT_MGR_ID NUMBER(6,0) Y   References hr.employees.employee_id.
CUST_GEO_LOCATION SDO_GEOMETRY(1) Y   SDO (spatial) column.

Primary key

Primary key Columns
CUSTOMERS_PK CUSTOMER_ID

Check constraints

Check constraint Check condition
CUST_FNAME_NN "CUST_FIRST_NAME" IS NOT NULL
CUST_LNAME_NN "CUST_LAST_NAME" IS NOT NULL
CUSTOMER_CREDIT_LIMIT_MAX credit_limit <= 5000
CUSTOMER_ID_MIN customer_id > 0

Indexes

Index Type Uniqueness Columns
CUST_ACCOUNT_MANAGER_IX NORMAL NONUNIQUE ACCOUNT_MGR_ID
CUST_EMAIL_IX NORMAL NONUNIQUE CUST_EMAIL
CUST_LNAME_IX NORMAL NONUNIQUE CUST_LAST_NAME
CUSTOMERS_PK NORMAL UNIQUE CUSTOMER_ID
CUST_UPPER_NAME_IX FUNCTION-BASED NORMAL NONUNIQUE  
SYS_IL0000029523C00022$$ LOB UNIQUE  
SYS_IL0000029523C00023$$ LOB UNIQUE  

Options

Option Setting
Clustered N
Generated by Oracle N
Index Organized N
Logging Y
Partitioned N
Temporary N
Nested N

Referenced by

Referenced by Constraint
ORDERS ORDERS_CUSTOMER_ID_FK


Generated by
OraDoclet, Copyright © Oracle Corporation 2005      Last updated: 01.01.2005