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

Untitled

Database management systems are software used to create, access, and manipulate data within a database. Popular examples include Oracle, SQL Server, MySQL, and MS Access. SQL is a database language used to perform operations on a database like DDL for data definition, DML for data manipulation, DCL for data control, and TCL for transaction control. DDL commands like CREATE, ALTER, and DROP are used to create, modify, and delete database objects like tables. DML commands like INSERT, DELETE, and UPDATE are used to add, remove, and modify data within database objects.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

Untitled

Database management systems are software used to create, access, and manipulate data within a database. Popular examples include Oracle, SQL Server, MySQL, and MS Access. SQL is a database language used to perform operations on a database like DDL for data definition, DML for data manipulation, DCL for data control, and TCL for transaction control. DDL commands like CREATE, ALTER, and DROP are used to create, modify, and delete database objects like tables. DML commands like INSERT, DELETE, and UPDATE are used to add, remove, and modify data within database objects.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Database Management System:- Database Management System is a type of applicatio

software ,which is use to manage database. it


provide facilities to create , access and manipulate
data within database.
E.G. Oracle,SQL server,mySql,MS-Access,DB2,mongodb..
are some popular database management system.

SQL:- SQL is stand for structured quary language.It is a database language.


SQL is use to perform database operations.
Based on database operations SQL is categorized in four parts....

1. DDL (Data Definition Language)


2. DML (Data Manipulation Language)
3. DCL (Data control Language)
4. TCL (Transaction control Language)

Commands of DDL:-
1.create:- The create command is used to create a new database
object (database,table,view,index..).
2.alter:- The alter command is used to modify(change)structure of
database object.
3.drop:- The drop command is used to delete database object.
4.trumcate:- The truncate command is used to delete all data from
database object, but structure of database object
remains.
5.backup:- The backup command is used to take backup of database.
6.restore:- The restore command is used to reconstruct database from its
backup.

Commands of DML:.....
1.insert:- The insert command is used to insert record into database
object.
2.delete:- The delete command is used to delete record from database
object.
3.update:- The update command is used to modify(change) record into
database object.
4.select:- The select command is used to view record from database
object.
Commands of DCL:......
1.grant:- The grant command is used to give rights to database user.
2.revoke:- The revoke command is just opposite to grant command. It
is used to take off rights from database user.
3.rename:-The rename command is used to change name of of database
object.

Command of TCL......

1.Commit:-The commit commend is used to save transaction in database.


2.rollback:-THE rollback is just like undo.It is used to the undo the
transaction.

Use of create command to create table:-

create table<tablename>
(
<fieldname><datatype>,
<fieldname><datatype>,
<fliedname><datatype>
);

Primary Key:- Primary Key is a field in a table ,which is used to


identify each record uniquely.IT is atomic(uniqe)
and not null.

create table employee


(
empid varchar(20)primary key,
empname varchar(50),
department varchar(50),
salary int
);

You might also like