Untitled
Untitled
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......
create table<tablename>
(
<fieldname><datatype>,
<fieldname><datatype>,
<fliedname><datatype>
);