Database Objects Table : Basic unit of storage; composed of rows View : Logically represents subsets of data from one or more table Sequence : Generates numeric values Index : Improves the performances of some queries Synonym : Gives alternative names to objects Oracle 2006.09.04
Database Objects Table : Basic unit of storage; composed of rows View : Logically represents subsets of data from one or more table Sequence : Generates numeric values Index : Improves the performances of some queries Synonym : Gives alternative names to objects Oracle 2006.09.04
ALTER TABLE statement Use the ALTER TABLE statement to:Add a new columnModify an existing columnDefine a default value for the new columnDrop a column Oracle 2006.09.03
ALTER TABLE statement Use the ALTER TABLE statement to:Add a new columnModify an existing columnDefine a default value for the new columnDrop a column Oracle 2006.09.03
CHECT Constraint Defines a condition that each row must satisfy The following expressions are not allowed: - References to CURRVAL, NEXTVAL, LEVEL, and ROWNUM pseudocolumns - Call to SYSDATE, UID, USER, and USERENV functions - Queries that refer to other values in other rows ..., salaryNUMBER(2) CONSTRAINTemp_salary_min CHECK (salary > 0),... Oracle 2006.09.03
CHECT Constraint Defines a condition that each row must satisfy The following expressions are not allowed: - References to CURRVAL, NEXTVAL, LEVEL, and ROWNUM pseudocolumns - Call to SYSDATE, UID, USER, and USERENV functions - Queries that refer to other values in other rows ..., salaryNUMBER(2) CONSTRAINTemp_salary_min CHECK (salary > 0),... Oracle 2006.09.03
Datetime Data Types (2) The INTERVAL YEAR TO MONTH data type stores a period of time using the YEAR and MONTH datetime fields INTERVAL YEAR [(year_precision)] TO MONTN ex) CREATE TABLE time_example2 (loan_duration INTERVAL YEAR(3) TO MONTH ); INSERT INTO time_example (loan_duration) VALUE (INTERVAL '120' MONTH)); SELECT TO_CHAR (sysdate +loan_duration, 'dd-mon-yyyy') FROM time_example2; The INTERVAL DAY TO SECOND data .. Oracle 2006.09.02
Datetime Data Types (2) The INTERVAL YEAR TO MONTH data type stores a period of time using the YEAR and MONTH datetime fields INTERVAL YEAR [(year_precision)] TO MONTN ex) CREATE TABLE time_example2 (loan_duration INTERVAL YEAR(3) TO MONTH ); INSERT INTO time_example (loan_duration) VALUE (INTERVAL '120' MONTH)); SELECT TO_CHAR (sysdate +loan_duration, 'dd-mon-yyyy') FROM time_example2; The INTERVAL DAY TO SECOND data .. Oracle 2006.09.02
Datetime Data Types (1) TIMESTAMP : Date with fractional second INTERVAL YEAR TO MONTH : Stored as an interval of years and months INTERVAL DAY TO SECOND : Stored as an interval of days, hours, minutes and seconds Representing the Difference Between Datetime ValuesUse the INTERVAL DAY TO SECOND datatype to represent the precise difference between two datetime values. For example, you might use this value to set a remin.. Oracle 2006.09.02
Datetime Data Types (1) TIMESTAMP : Date with fractional second INTERVAL YEAR TO MONTH : Stored as an interval of years and months INTERVAL DAY TO SECOND : Stored as an interval of days, hours, minutes and seconds Representing the Difference Between Datetime ValuesUse the INTERVAL DAY TO SECOND datatype to represent the precise difference between two datetime values. For example, you might use this value to set a remin.. Oracle 2006.09.02