NAAC Presentation of LIBRARY & INFROMATION CENTER ASSM MEDHA by Dr. Sudhir Nagarkar
dbms ASSM
-
Upload
toshit-jain -
Category
Documents
-
view
227 -
download
0
Transcript of dbms ASSM
-
8/9/2019 dbms ASSM
1/6
Assignment 3 ..
SOME COMMANDS AND CLAUSESUSED
WHILE CREATING A USER
AND GRANTING HIMRESOURCES.
Aatika Bansal CSE T1[B] 0 !1"#$%0
-
8/9/2019 dbms ASSM
2/6
S&NTA'
COMMANDS DESCRI(TION
CREATE USER
T) *+,at, an- *)n / +, a -ata as, user 2 34i*4 is ana**) nt t4+) /4 34i*4 5) *an l)/ in t) t4, -ata as,2 an-t) ,sta lis4 t4, 6,ans 5 34i*4 O+a*l, Data as, 7,+6its
a**,ss 5 t4, s,+.
username
S7,*i85 t4, na6, )8 t4, s,+ t) , *+,at,-. T4is na6, *an*)ntain )nl5 *4a+a*t,+s 8+)6 5) + -ata as, *4a+a*t,+ s,t
an- 6 st 8)ll)3 t4, + l,s
IDENTI9IEDCla s,
T4, IDENTI9IED *la s, l,ts 5) in-i*at, 4)3 O+a*l,Data as, a t4,nti*at,s t4, s,+.
B&7ass3)+-
T4, B& password *la s, l,ts 5) *+,at,s a local user an-in-i*at,s t4at t4, s,+ 6 st s7,*i85 password t) l)/ )n t)
t4, -ata as,. (ass3)+-s *an *)ntain )nl5 sin/l,: 5t,*4a+a*t,+s 8+)6 5) + -ata as, *4a+a*t,+ s,t +,/a+-l,ss )8
34,t4,+ t4, *4a+a*t,+ s,t als) *)ntains 6 lti 5t,*4a+a*t,+s.
GRANT
T) /+ant S5st,6 7+i;il,/,s t) s,+s an- +)l,s
Aatika Bansal CSE T1[B] 0 !1"#$%0
-
8/9/2019 dbms ASSM
3/6
CONNECT
*)66its t4, * ++,nt t+ansa*ti)n t) t4, -ata as,2-is*)nn,*ts t4, * ++,nt s,+na6, 8+)6 O+a*l, Data as,2
an- +,*)nn,*ts 3it4 t4, s7,*i ,- s,+na6,.
CREATE USER usernameIDENTIFIED BY password ;
SOME COMMANDS USED
WHILE CREATING TABLES
AND ENTERING
-
8/9/2019 dbms ASSM
4/6
COMMANDS
DESCRI(TION S&NTA'
C+,at,
T) 6ak, a n,3 -ata as,2 ta l,2 in-,=2)+ st)+,- > ,+5. A CREATE stat,6,nt
in S?L *+,at,s an ) @,*t insi-, )8 a +,lati)nal -ata as, 6ana/,6,nt
s5st,6 RDBMS .
CREATE [TEM(ORAR&] TABLE [tablename] [columndefnitions] [table
parameters] .
INSERT T4, INSERT *)66an- in S?L is s,-
t) a-- +,*)+-s t) an ,=istin/ ta l,.INSERT INTO ...
-
8/9/2019 dbms ASSM
5/6
SOME COMMANDS USED
WHILE SOL
-
8/9/2019 dbms ASSM
6/6
COMMANDS DESCRIPTION SYNTAX
DML
The Data Manipulation Language DML! i" u"e# to
$et$ie%e& in"e$t an# 'o#i() #ata*a"e in(o$'ation+The"e ,o''an#" -ill *e u"e# *) all #ata*a"e u"e$"#u$ing the $outine ope$ation o( the #ata*a"e+
SELECTThe SELECT ,o''an# i" the 'o"t ,o''onl) u"e#
,o''an# in S.L+ It allo-" #ata*a"e u"e$" to$et$ie%e the "pe,i(i, in(o$'ation the) #e"i$e ($o' an
ope$ational #ata*a"e+
SELECT +++ FROM +++ /0ERE +++
UPDATEThe UPDATE ,o''an# ,an *e u"e# to 'o#i()
in(o$'ation ,ontaine# -ithin a ta*le& eithe$ in *ul1 o$ in#i%i#uall)+
UPDATE +++ SET +++ /0ERE +++
DELETEThe DELETE ,o''an# -ith a /0ERE ,lau"e ,an
*e u"e# to $e'o%e an) $e,o$# ($o' ta*le+ DELETE FROM +++ /0ERE +++
DDL
The Data De(inition Language DDL! i" u"e# to,$eate an# #e"t$o) #ata*a"e" an# #ata*a"e o*2e,t"+The"e ,o''an#" -ill p$i'a$il) *e u"e# *) #ata*a"ea#'ini"t$ato$" #u$ing the "etup an# $e'o%al pha"e"
o( a #ata*a"e p$o2e,t+
D$opTo #e"t$o) an e3i"ting #ata*a"e& ta*le& in#e3& o$
%ie-+
D$op ta*le tablename
Alte$ To 'o#i() an e3i"ting #ata*a"e o*2e,t+ Alte$ ta*le tablename'o#i() ,olu'n #e(ination"!
E#itEnte$ EDIT -ith no (ilena'e to e#it the ,ontent" o(
the S.L *u((e$ -ith the ope$ating ")"te' te3t e#ito$+ e#it
Aatika Bansal CSE T1[B] 0 !1"#$%0
http://en.wikipedia.org/wiki/Update_(SQL)http://en.wikipedia.org/wiki/Delete_(SQL)http://en.wikipedia.org/wiki/Update_(SQL)http://en.wikipedia.org/wiki/Delete_(SQL)