SQL Notes
SQL Notes
Coropuk anguccee
alCAigne.c ler the efvaloncl maragemen
Telauiona dal abase
dakaa
Applicaiobi
data h he rulabon dbms.
CAllos to actes
l o ws s s to dascot be oe daka.
Cear4 drop_database
and
Allows ACs h
tbles
t l d s Users b Ca c viej gered proteolulTe
hunchioos
ho is SL
kawgungt, hich
SAL isa Shuctucd auery
empuixkanguo Stming manupulah
tsa
4Yehtseisg data stmed in RDB
SSL achitecture
SAL 9uey
P a r s estophme
Quory long_procoAo
bBMS engine
Filemona9e
Treunsachon rdonaar
pysical
olataba
ghancas
SAL Commands:
S b c shandard SBL Coromounds to rexad i h
Telab ond
dostohaues aNe Creae ela nsex .
pdot. dli nd dropTht com ands tan be
clasittofio-ae l l o a roups boucd
on.
Relabona
M a r a g e m t o y s k e m B D 8 M s
alkhockm
cdakakase_St
rale
sysems ltk
aned ha BMIDB2,.brale
S A L T S e x v e r s E N I
DB. My sa1
MS
|andmicanseE_acteSS
A vehhaoatabose noanggemep
the
m a n a g e m e n F y s E R m
is
a dababose
relchenal
m0olel o u fohocuted
oocd on he
E.Locld.
oppliee_on anydalaba
Can be
hese ruls olata using0nl..
managA Stmed
Aystembat
opabtHA his is a lnrlah
elabbnal
uleohich acz asa
bcbe her cul tbe'othe
Tults
Ruli Inlmmahoo uli
Rule 2 Huaxanteedule
haiseld
Evey lable s b>oken up fn tt Smallen en HHes
dallac ields
SSL Conshrants
daka ceum
Cons rafni ae the les enjeced on
lfont the ypeo
o Da bable: Tbese are Used to
Tha_eAuTek
daba that can g no a:table.. data
accuracy and eliabi Ey ok
the
h
th lalolosi.
levele7 teuble
eftherbe columo
Consihaink iCan h.ome
are appltel only
level conshadk
leve cokumg consbreutns ai applite
Columnwbere os table level
bo the eafre truble.
ANO TAOLI oshofs Ensuncs tha: a (cunr
CADno hove o NoL aluu
Delaul Censhaols: pvovides a dolault val
bor a Column ben rane s Apecilied.
DoaDrma.zabo
Daka kose Dexaiizabibn sprce c it
osqarisng data fn daakase 1erere t e
edses q Hhs netmaliaoise prous
NP
2NFF
3Td NF.
BCNF
4 b N F ekc.
My S L database,whicb -
ADuR ASL
MysaL is an bpen compansNYsyL
Atdish
is avelopec bythe asmy
es-qut-el
ispronDunltd Se
"S eq
qeel.
MySaL Pronounted
AB witaSSL
ras t
i n Con
dherent plaHn
jerent plaHn
SupporHing
many
MYS&L s nels t h e mojo
mirosoLF la
a Cc oSx.
oSX
1ncluctha
uMP cund
bukoi
disbi
Anw
MySsL has ree avc poaiol versids clopendine
Comes ,
on its scLqe cnd ecdesMYSA
-hrcoded,mulh-Llser ancd
very Jas mulk
YobLut SSL daabase Servex
Histey
Development o My.squL by mi chao Wídeniu
4DavidAxmonk begioning 9h
on 3Tel mou 995.
|Fhst intenalreleasC
JUne 20D0,
VOTsfon3.83 beta from
orodluchen velase Jounuary 2001.
poduchbn
Versfo 5.0: beta om march2005
ydease bchober 9oo5
produth a releoase1T*
Venbi 51:
OOvem bes 2008
ghancdras
Fealuo
iohper e.manta.
avat abtlfty
Scolcubiyad
Scolabilt
2obusE
Hexrbilrhy Ran aMAthRq
Tansach onad Suppor
weband dato Vore hous she n
s hong darc pretethon.
ceme hensiVe applicobon de ve logrroo
mwno eden Eose.
epenS Ce Feedem and 24*TSuppo
Looest ttal Cos oh OHoexsbfp
S&L Data ypes.
ss L dataype s cun atri buth hak Apeku
te pe O lata oj any obfec Foch tolumo.
yanialleand Uqmessfoo h ovs a relauted data yee
d a a tYpes
Charackn shgs
Chaa
Varchas
VarchaxCmae)
tex
nhu
Bhamy dbta types
1bhory
2Varbihary
3 Yevrbhar ase)
Hdma
|Misc datti ype
CuSOY
Sl-yantantt
Gable
2- meStamp-
iniGke duwi ien
char das
S8Upezelev
A theoah Cpenoit
CempcAS On9peio
Legica pexalei
rOpenots used y neaett corditrcrk.
S SL A thmchc Operotri
+Coditon)
-Csubshacion).
Cmulb pliccuhon)
/(ofvision)
mccdulus).
saLComr'Son 0pexaLens i
-(noEcqal)
Hheyabue s Hoo openunos ane equalrnod
4 checks i
reoti than
l e s s than
v
7:_aciir han oreqnad
S l o g t c a iopercts
8. loT
ALL
2:Ard l 0 SNULL
3.Any
H.Beween
f . Like
S8 etpressior.
Tae ane- dilentn: lypes byS8L prexsitra
1ohth anne menhonbeloro
Boblean
Alumerf
*-Date
.
Booleanepeisiam
SSLBoolecn eNestonelch:the clata
bexbed onmatchfng a sengle Valise
Folloihgis the Syntan
tcomple
heolbwing toble isa siple Boolear
usoge oyarins SaL
Shewig the
chor
Akme AE ADngt
Scd
ere Solorq1o000,
nclore AddNes.s
almaai Peso4
hesc
humah co Opur
math
folong ti olon n
o
Spntust
elkc numeni cal-
CFYo CubleDame
epressicm a
Optrabion-nom
ohere Cenci tioJ;
Doxtr UpreSiom
Dati eptSim tlunCuhunt ssEem
Kme volues-
dalr amol
S8L Seleck CUrent me sttum p:
Cument-TimesFamp
20 09-tt-12 HOs 23.
arpwn. sek CO-0o Sed