Database Management system lecture note.

chibunnajoe31 5 views 47 slides Feb 27, 2025
Slide 1
Slide 1 of 47
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47

About This Presentation

This slides explains database management system


Slide Content

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Introduction to Oracle: History, Features, Versions of
Oracle, Spool command
SQL: Introduction, Components of SQL, SQL query
Rules, Data types, Keywords, Delimiters, Literals
Data Constraints: Primary key, Foreign Key, NOT NULL,
UNIQUE, CHECK constraint.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Oracle Introduction:-
•OracleDatabaseisarelationaldatabasemanagement
system(RDBMS).ItisknownasOracleDatabase,OracleDBorsimply
Oracle.ItismanufacturedbyOracleCorporation.
•Oracleisoneofthemostwildlyuseddatabaseinmostofthetop
company.Tokeepthedatasafeandsecure.
•Everycompanywanttousedbestofthedatabasetomakesurethe
clientdataandcompanydetailsareprotected.
•TheyusedstructurequerylanguagewhichisalsoknownasSQL.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
History of Oracle :-
•History:-
•Oracleisapowerfulrelationaldatabasesoftwaredevelopedby“Lawrence
Ellison”andhistwofriendsBobMinerandEdOatesintheyear1977at
SoftwareDevelopmentLaboratories(SDL)
•OracleCorporationwasthefirstcompanytocommercializea
relationaldatabasemanagementsystemandisstillthelargest
companysellingdatabasesoftwareworldwide.
•OracleDatabaseisavailabletorunonmostmajoroperatingsystems
suchasWindows,UNIX,LinuxandMacOS.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
History of Oracle :-
•History:-
1979–RSI–RelationalSoftwareInc(RSI)developedoracleV2justsupportSQL
1982–changename–“OracleCorporation”
1983–OracleV3developedinCLanguage.
1984-OracleV4 1985-OracleV5
1988-OracleV6alsoPL/SQL 1990-OracleV8
1999-Oracle8i 2001–Oracle9i
2003-Oracle10g 2007-Oracle11g
2013-Oracle12c 2018-Oracle18c
2019-Oracle19c 2020-Oracle21c

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Different editions of Oracle database:-
•Therearemanyeditionsoforaclesuchasfollow.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Different editions of Oracle database:-
•Therearemanyeditionsoforaclesuchasfollow.
1.EnterpriseEdition:-Asitsnamesuggests,thiseditionhasbeenmadeforbig
organizations.Everydayalargeamountofdatahastobestored.Thisisthemost
expensiveedition.
2.StandardEdition:-Thiseditionislessexpensivethantheenterprise,aswellas
theabilitytostoredatainitisalsolessthantheenterprisewhichisdevelopedfor
thesmallorganization.
3.ExpressionEdition:-Oraclehasmadethiseditionkeepingthestudentinmind.
Thisisabsolutelyfree.Itcanbeusedforpersonaluse.Duetothisthecapacityto
storedataisveryless.Studentsuseittolearnoracledatabase.
4.Oraclelite:-Thiseditionismadeforsmartphonesandtablets.Whichisrarely
usedatpresent.Becausethereisalotoftroubleinthiskindofworkwitha
Smartphone,that'swhyitsoperationisnegligible.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Features of Oracle database:-
•CommonUsageofOracledatabase:-Oracledatabasesoftwareisusedfor
thefollowingpurposes
•Dataretrieval:Tocollectdatainanorganizedmanner.
•Dataredundancy:CanuseOracleDBtocreate,delete,modifydataalready
storedinthedatabase.
•SupportsOracleStandardQueryLanguage(SQL).SQLisalanguageto
operatedatabases.
•Allowsmanydifferentcomputerstobeconnectedtogethertostore
massiveamountsofdata.
•Providesbettersecurityoptions.
•SecurityandIndexing

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Oracle File Management, Spool command -
•OracleManagedFiles(OMF)directlymanagesfilecreationanddeletionat
theoperatingsystemlevel....Oracleinternallyusesstandardfilesystem
interfacestocreateanddeletefilesasneededforthedatabasestructures
suchastablespaces,onlineredologfiles,andcontrolfiles.
•It has several advantages:-
•Automatic cleanup of the file system when database objects are dropped.
•Standardized naming of database files.
•Increased portability since file specifications are not needed.
•Simplified creation of test systems on differing operating systems.
•No unused files wasting disk space.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Spool command -
•The SPOOL command isused to write output to a text file. You must
use this if you are going to print a report. The only way to print a
report is to spool it to a file, then print that file.
•SQL> spool D:\Spool\data.txt;
•Update text file :-data.txt
•SQL> spool D:\Spool\data.txt Append;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
SQL Introduction , Defining a Database in SQL:-
•SQL stands for Structured Query Language
•SQL lets you access and manipulate databases
•SQL became a standard of the American
National Standards Institute
(ANSI) in 1986, and of the International
Organization for Standardization (ISO) in 1987

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Defining a Database in SQL:-
Adatabaseisanorganizedcollectionofstructuredinformation,ordata,
typicallystoredelectronicallyinacomputersystem.Adatabaseisusually
controlledbyadatabasemanagementsystem(DBMS).
WhatisData?
Dataisacollectionofadistinctsmallunitofinformation.Itcanbeusedina
varietyofformsliketext,numbers,media,bytes,etc.itcanbestoredin
piecesofpaperorelectronicmemory,etc.
WhatisDatabase?
•Adatabaseisanorganizedcollectionofdata,sothatitcanbeeasily
accessedandmanaged.Ex.YourGmaila/c,facebooka/cetc.
•Youcanorganizedataintotables,rows,columns,andindexittomakeit
easiertofindrelevantinformation.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
What Can SQL do?-
•SQLcanexecutequeriesagainstadatabase
•SQLcanretrievedatafromadatabase
•SQLcaninsertrecordsinadatabase
•SQLcanupdaterecordsinadatabase
•SQLcandeleterecordsfromadatabase
•SQLcancreatenewdatabases
•SQLcancreatenewtablesinadatabase
•SQLcancreatestoredproceduresinadatabase(PL-SQL)
•SQLcancreateviewsinadatabase
•SQLcansetpermissionsontables,procedures,andviews

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Components of SQL:-
•DDL -Data Definition Language
•Helps to define table and table level processes like alter table, drop table etc.
•DML -Data Manipulation Language
•Helps to insert and edit data in table
•DCL -Data Control Language
•Helps to manage access to database
•DQL-Data Query Language
•Helps in retrieving Data from table/tables
•TCL-Transactional Control Language.
•Helps in permanently save Data from table/tables

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Defining a database in SQL:-
•AdatabaseinSQLServerismadeupofacollectionoftablesthat
storesaspecificsetofstructureddata.Atablecontainsacollectionof
rows,alsoreferredtoasrecordsortuples,andcolumnsalsoreferred
toasattributes.
•DataDefinitionLanguage(DDL)isasubsetofSQLandapart
ofDBMS(DatabaseManagementSystem).DDLconsistofCommands
tocommandslikeCREATE,ALTER,TRUNCATEandDROP.These
commandsareusedtocreateormodifythetablesinSQL.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
DDL Commands:Create, Alter, truncate, drop, desc:-
CREATE and DescCommands:
This command is used to create a new table in SQL. The user has to give information like
table name, column names, and their data types.
Syntax –
CREATE TABLE table_name(column_1 datatype, column_2 datatype, column_3 datatype,
.... );
•Example –
We need to create a table for storing Student information of a particular College. Create
syntax would be as below.
•CREATE TABLE Student_info(College_Idnumber(2),College_namevarchar(30),Branch
varchar(10));
•DescCommand: desccommand to describe thestructureof a table.
•Syntax: Desctable_name
•DescStudent_info;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
ALTER Command:-
•This command is used to add, renaming table, delete or change columns in
the existing table. The user needs to know the existing table name and can
do add, delete or modify tasks easily.
•Alter command include the sub 4 commands
•1. Add 2.Drop column 3. Modify4. Rename
1. Add command : To add a column to an existing table.
•Syntax –
ALTER TABLE table_nameADD New_column_namedata_type;
•Example –
In our Student_infotable, we want to add a new column for CGPA
•ALTER TABLE Student_infoADD CGPA number;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
ALTER Command:-
2. Drop Column Command:-using this command to drop a column in
an existing table in Oracle
•Syntax –
ALTER TABLE table_nameDROP COLUMN column_name;
•Example –
In our Student_infotable, we want to drop column for MobNo
•ALTER TABLE Student_infodrop column mobno;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
ALTER Command:-
3. Modify command:-ALTER TABLE MODIFY allows modifying the
constraints such as primary key, column size, data_type, its default
value, length, null_ability, etc
•Syntax –
ALTER TABLE table_namemodify column_namedata_type;
•Example –
In our Student_infotable, we want to modify column structure for
address size i.e. we increase the size.
•ALTER TABLE Student_infomodify Address varchar2(50);

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
ALTER Command:-
4.Renametablecommand:-ThereisanalternativetoRENAMETABLE
thatcanalsobeusedtogivetherequiredtableanewname.Itisa
statementcalledALTERTABLE,andithasthefollowingsyntax
ALTERTABLEtable_nameRENAMETOnew_table_name;
Pleasenotethatyoucan'trenamemultipletableswithasingleALTER
TABLEstatement
Ex:-altertablestudrenametoStudent;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
TRUNCATE Commands :
This command is used to remove all rows from the table, but the
structure of the table still exists.
•Syntax –
Syntax to remove an existing table.
TRUNCATE TABLE table_name;
•Example –
The College Authority wants to remove the details of all students for
new batches but wants to keep the table structure. The command
they can use is as follows.
•TRUNCATE TABLE Student_info;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Drop Command:
This command is used to remove an existing table along with its
structure from the Database.
•Syntax –
Syntax to drop an existing table.
DROP TABLE table_name;
•Example –
If the College Authority wants to change their Database by deleting
the Student_infoTable.
•DROP TABLE Student_info;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
What is Data Manipulation Language?
Data Manipulation Language (DML)allows you to modify the database
instance by inserting, modifying, and deletingits data. It is
responsible for performing all types of data modification in a
database.
•There are three basic constructs which allow database program and
user to enter data and information are:
•Here are some important DML commands in SQL:
•INSERT
•UPDATE
•DELETE

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
INSERT Command:
This is a statement is a SQL query. This command is used to insert data
into the row of a table.
Syntax:
INSERT INTO TABLE_NAME (col1, col2, col3,.... colN) VALUES
(value1, value2, value3, .... valueN);
Or
INSERT INTO TABLE_NAME VALUES (value1, value2, value3, .... valueN);
For example:
INSERT INTO students (RollNo, FIrstName, LastName) VALUES (07, ‘Raj',
‘Patil');

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Update Command:
This command is used to update or modify the value of a column in the
table.
Syntax:
UPDATE table_nameSET [column_name1= value1,...column_nameN=
valueN] [WHERE CONDITION]
For example:
UPDATE students
SET FirstName= ‘Yashraj', LastName= ‘Jadhav'
WHERE StudID= 7;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Delete Comand:
DELETE:
This command is used to remove one or more rows from a table.
Syntax:
DELETE FROM table_name[WHERE condition];
For example:
DELETE FROM students
WHERE FirstName= 'Jhon';

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
TCL Commands:
•Transaction Control Language commands are used to manage
transactions in the database.
•Transactional control commands are used only DML Commands such
as INSERT, UPDATE and DELETE.
•COMMIT, ROLLBACK and SAVEPOINTare the TCL commands used in
SQL
SQL COMMIT:
•COMMITcommand is used topermanently save any transaction into
the database.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
TCL Commands:
Syntax:
Commit;
SQL Rollback:
•Rollback command restores the database to the last committed state.
ROLLBACK also used with the savepoint.
Syntax:
Rollback ;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
TCL Commands:
SAVEPOINT:
Savepointcommand is used to temporarily save a transaction so that
you can rollback to that point whenever necessary.
Syntax:
Savepoint;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
What is Privilege?
•Privilege is a permission given by DBA.
•It provides right to execute a particular type of SQL statements.
•It also give right to connect the database and create a table in your schema
•SQL DCL Command deals with privileges .
•Privileges can be divided into two parts:-
•System privileges(DDL): This allows the user to CREATE, ALTER, or DROP database
objects.
•Object privileges(DML,DQL): This allows the user to EXECUTE, SELECT, INSERT,
UPDATE, or DELETE data from database objects to which the privileges apply.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
DCL Commands:-Grant & Revoke
Data Control Language(DCL):The main used of DCL is to allow the
restriction to user from accessing the data in database.
SQL provides two DCL commands to manipulate the privileges. Such as
Grant and Revoke.
Grant: It is used to give user access privileges to a database.
Revoke: It is used to take back permissions from the user.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
DCL Commands:-Grant & Revoke
Grant Command:
Syntax: GRANT privilege_nameON object_nameTO {user_name};
•privilege_nameis the access right or privilege granted to the user.
Some of the access rights are ALL, EXECUTE, and SELECT.
•object_nameis the name of an database object like TABLE, VIEW,
STORED PROC and SEQUENCE.
•user_nameis the name of the user to whom an access right is being
granted.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
DCL Commands:-Grant & Revoke
Revoke Command:
Syntax: REVOKE privilege_name
ON object_name
FROM {user_name};

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
DCL Commands:-Grant & Revoke
Ex. Create User
SQL> create user Raj identified by pwd;
User created.
SQL> grant connect to Raj;
Grant Succeeded
SQL>connect
Enter user-name: Raj
Enter password: pwd
Connected.
Sql> grant select on stud to Raj;
Grant Succeeded
Sql> select * from system.emp;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
DCL Commands:-Grant & Revoke
Ex.
SQL>Revoke delete on system.emp from raj;
Revoke succeeded
SQL> Revoke all on system.emp from raj;
Revoke succeeded
SQL> Revoke connect from raj;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
DQL Commands:-Select
DQL is used to fetch the data from the database.
It is used to select the attribute based on the condition described by
WHERE clause.
Syntax:
SELECTexpressions FROMTABLES WHEREconditions;
Example:
SELECTemp_nameFROMemployee WHEREage>20;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
DQL Commands:-Global data extract
1. To display all the data from a table selectcommand is used as follows –
Syntax:
select * from table_name;
ex:-SQL> select * from emp;
2. To retrieval of specific columns from a table :-
For retrieval of specific columns select command is used with column names
as follows:-
Syntax:-
select columnname1, columnname2 from tablename;
Ex: sql> select empno, enamefrom emp;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
DQL Commands:-Global data extract
3. Selecting data set from table data:
For retrieval of selected rows select command is used with where
clause.
Syntax: select columnname1, columnname2 from tablenamewhere
search condition;
Ex: sql> select empno, enamefrom empwhere empno=7698;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
DQL Commands:-selecting unique records
Oracle DISTINCT clause isused to remove the duplicate records from
the result set.
It is only used with SELECT statement.
Syntax:
•SELECTDISTINCTexpressionsFROMtablesWHEREconditions;
Ex:-
select distinct ename, sal, deptnofrom empwhere deptno=10;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Sorting data in table
Order By Keyword:.
•TheORDER BYkeyword is used to sort the result-set in ascending or
descending order.
•TheORDER BYkeyword sorts the records in ascending order by default. To
sort the records in descending order, use theDESCkeyword.
ORDER BY Syntax:
SELECTcolumn1,column2, ...
FROMtable_name
ORDERBYcolumn1, column2, ...ASC|DESC;

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Sorting data in table
ORDER BY Keyword Example:
1.Print the names of employee in the ascending order.
SQL> select enamefrom emporder by ename;
O/P:-
ENAME
----------
ADAMS
BLAKE
CLARK
FORD
JAMES

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Sorting data in table
ORDER BY Keyword Example:
1.Print employee information in the descending order of salary.
SQL> select ename, salfrom emporder by saldesc;
O/P:-
ENAME SAL
--------------------
KING 5000
SCOTT 3000
FORD 3000
JONES 2975
BLAKE 2850

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Data types, Keywords, Delimiters, Literals:-
•Datatypes–Allows to decide datatypeof data stored under each column in
table.
•Oracle Datatypes–number, float, double, varchar, varchar2, blob
•Keywords -Oracle uses them internally in specific ways. Therefore, if you
use these words as names for objects and object parts, then your SQL
statements may be more difficult to read and may lead to unpredictable results
•Delimiters –Adelimiteris a simple or compound symbol
•Literals –These are the constant valuesFor example, 'JACK', 'BLUE ISLAND',
and '101' are all character literals; 5001 is a numeric literal. Character literals
are enclose

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Data Constraints: Primary key, Foreign Key, NOT NULL, UNIQUE, CHECK constraint.
1.Primary Key Constraints:
The SQL PRIMARY KEY identifies a unique type of record in the table.
PRIMARY KEY This is a combination of both UNIQUE and NOT NULL constraints.
Only one PRIMARY KEY can be given for a table in the database. It can also be a
PRIMARY KEY for one or more columns.
PRIMARY KEY This is also given at column-level(single column) and is also given at
table-level(multiple columns).
Syntax for Column-level PRIMARY KEY
column_namedata_typePRIMARY_KEY
Source Code:
CREATE TABLE Table3( id INT(2) PRIMARY KEY, name VARCHAR(100) NOT NULL);

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Data Constraints: Primary key, Foreign Key, NOT NULL, UNIQUE, CHECK constraint.
2.ForeignKeyConstraint
ThereisafieldintheForeignKeyTable,whichuniquelyidentifieseachrowof
anothertable.Thisfieldindicatestheprimarykeyofthesecondtable.Foreign
Keyusuallycreatesakindofconnectionbetweentables.
3.NOTNULLconstraints:-
Thisconstraintisusedwhennocolumnistobekeptempty.NOTNULLconstraints
preventthevalueofacolumnfrombeingnull.Whenthisconstraintisusedina
column,thennullvaluecannotbeprovidedtothatcolumn.
4.UNIQUE constraints:-
Unique constraints indicate the uniqueness of a column's value. Unique constraints
ensure that the column or field contains only unique values, which means that all
the values ​​of the column will be different.

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Data Constraints: Primary key, Foreign Key, NOT NULL, UNIQUE, CHECK constraint.
5.Check Constraint
We can use Check Constraint to specify a condition for a field which must be satisfied at
the time of entering the values ​​of this field.
For example, the below query creates a student table and specifies the condition for the
field AGE (AGE >= 20). That is, the user will not be allowed to enter any record in the
table with AGE
CREATE TABLE Student
(
ID int(6) NOT NULL,
NAME varchar(10) NOT NULL,
AGE intNOT NULL CHECK (AGE >= 20)
);

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Data Constraints: Primary key, Foreign Key, NOT NULL, UNIQUE, CHECK constraint.
6. Default Constraint
Default Constraint is used to specify the Constant Value for a column. And the user does
not need to insert the value for such a column.
If the user does not specify any value for these fields at the time of entering the new
records in the table, then it will be specified by the default value.
For example, the below query creates a student table and will specify the default value for
age 20 for the table.
CREATE TABLE Student
(
ID int(6) NOT NULL,
NAME varchar(10) NOT NULL,
AGE intDEFAULT 20
);

BCA Sem-III
DBMS -II
Unit I –Introduction to Oracle and SQL Centre for Distance and Online Education
Thank You
Tags