0% found this document useful (0 votes)
21 views2 pages

SQL 1

The document discusses the basics of SQL including its development history, standardization, data types, database objects like tables and views, and sublanguages for data definition, manipulation, transaction control, data control, and retrieval. It also covers column specifications for creating tables and different constraint types that can be applied like primary keys, foreign keys, not null, and unique keys.

Uploaded by

sojubos
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

SQL 1

The document discusses the basics of SQL including its development history, standardization, data types, database objects like tables and views, and sublanguages for data definition, manipulation, transaction control, data control, and retrieval. It also covers column specifications for creating tables and different constraint types that can be applied like primary keys, foreign keys, not null, and unique keys.

Uploaded by

sojubos
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PRE-REQUISTE

------------------------------------------------------------------------------------------------------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

You might also like