SQL 1
SQL 1
------------------------------------------------------------------------------------------------------SQL---STRUCTUREQ QUERY LANGUAGE Developed by IBM AND STANDARDISED BY ANSIC DATAT TYPES CHAR VARCHAR2 NUMBER/NUMBER (PRECISION)/NUMBER(PRECISION,SCALE) DATE
DATABASE OBJECTS Table View Index Sequence Synonym SUBLANGUAGES OF SQL Data defenition langauage (ddl) Data manuplation language (dml) Transaction control language (tcl) Data control language (dcl) Data retrival language (drl)
SUBLANGUAGES OF SQL CONTD Data defenition langauage (ddl) allows to perform Create,Alter,Drop,Truncate on oracle 10g database Syntax: create table [table_name] ( <column_1 specification_1>, <column_2 specification_2>, <column_n specification_n>); Coloumn specification types <coloumn> <datatype> <coloumn> <datatype> <constraint type>
CONSTRAINTS conditions on the data present in the table PRIMARY KEY FOREIGN KEY NOT NULL UNIQUE KEY