Database management System
Database management System
Features
1.Data Modeling
3.Concurrency Control
Types of DBMS
1. RDBMS
Foxpro
MS ACCESS
MS SQL Server
ORACLE
MySQL
Database
Tables
Data
2. Non-RDBMS
document
graph
Mongodb
MariaDB
BiugTable
cassendra
Database
Collections
Document
KeyValue pair
Alter -
Drop -
Truncate -
comment-
rename -
DML -
select -
insert -
update -
merge - upsert -
delete -
Call StoredProcedure
localtable -
(grant,revoke)
grant-
revoke -
TCL -
commit -
rollback -
savepoint -
MySQL
show databases;
use databasename;
use lstdb;
tbl_student
sid int - 11
sdepartment text
smobile bigint(15)-default 20
smobile bigint(15));
show tables;
desc tablename;
desc tbl_student;
multiple records
limit
a particular record
a particular column
update
alter
first column
constraints
primary key
particular record
AND Query
OR
AND / OR
IN
pattern matching
select * from tbl_student where sid not between 101 and 104;
tbl_teacher
tid int pk
tname varchar(20)
tsubject text
tsalary decimal(7,2)
foreign key
join
inner join
ambiguity error
create a object