We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 16
ress Used to to_stoxe— Bere, ne
1 con Specie — “Hae
- — Shel
—Typhunen 1 % ia
point
-0s—#locting point C seol uml
oes eae
SE
NolueS 2
cae _
oO
ative —
— Fagen 7 Teed to stose Fag
L948 ings e
ar opocified, whan
|e igh a GHAR S
the data ig ith ___§
ad Purpose: : i to
ee
Naxlable length
Strings .— .
l
—_
i
ted
[Toagth = The maximum —_length ia opacifie ;
{when the __ column “je ag tea: =( “VARCH th
ee 3 i ARC > ) > but only the amount
° Stored io used uP tothe
maximum length . 7 —
loseratt ng oa toble
Syntar 2 Greote table ; toblename ob 5
| CGolumnName} datatype size) ,
_ columnName 2 dotetype (size deren ny |
column Nome, D —Aatetype Caine.) ew); -
a A tei namo Should bo yaa ;
Git must not —_matoh — swith any >
tables. ____, __&
___ should — bo,comb” of | - AZ L >—>
4 O- 7 WG Cundess « _,____&
@ Each -¢—eplumn _definstion io Seprated —_~
| —- EC —— 5
column defination __segulsee a _~
—|.name__, data _+ype- A ea =s
“The ane < L totement— 4
texminated Se ee __
oe employee table __|
: cee __ Fous __ columns __of _id_, noma,
dept > Seley —09— ae deveribed below 2Output &
| id name depos tment Salg
Sy
__Toble eseated /: “Loput ee
i : leweote,— deste ee 7
ee ,rrrtrsrtrtr—r— dept —_vaschos Clo) 5 5 olay
tl lumn N.) values Coxpression_| =
+t “expression 2, +... 5 &xphession. a
_(Seoeription i Lt the expressions Pag nes Qe
“1 olphabertio—fasm they ,pte,finelose.d — i
FHHH0NS _awep
Seprate commas (,) W j5 texminated
i re
Tosth = a) dete a
_* The osdex of ~__columng need no _____
4 with _ columng _osdax ino table __
definition : ———- — —output
id
| : | opt salas
ohigh 8 |
000
QO
T
20000
NoheExample : Inset data
into an employee
table as desarsibed below
Lnput
insest into emp| Ci
pleyee Cid, , name t ,%alaxy )
Values C} y Ashish es ne inden tt
insest
into employee Gia. nage , dept
Values
> Salasy dD
a»—Neho_, TT, 20000);
insest+ into employee C
id, pnome, dept, oalosy 2
Values Ca > Rajeev imac? 4
+, 9 4, 20000) 5
Anserting NULL values :
| Example : Lnsest oo new vow into a —|
t employee toble, having a noll
| Noluw fos. alosy columns
— 17 nput °. — .
—ingexst into employee Cad namgy sept, vpalany Dy
| values C4, Akisitiy IT) 3__ Output
L | LAakiah |
~a Neha
}
je Rajeev
|
t 4
a7
\Akisith
co loco
20009
oonclassmate
iB -
Zz
. a. a -
|The following — Perea ose _ listed below
E
—L —_——_—— : oe
b- Select, ae [ose to
te pdotore feom datahes es
i =
2 ee dl to _ specify Tae
___from___ubich to seteieve the dota. —
on
i Tyvhews Ve ee — Pubes Geeeads
2 based Sn Specified contidition —_ ——
‘Osdex_ I+ is used to gost the
vesult set in ascending area
L4—flesetinding — onder SS
Iie pame
_Robish
Noho
Rojeev
salasy
\o900
2.0000" |
30000ary fave all a
setsieve limited —
oll the sow of the _toble but
seleate columns
ce Display onl nome. _@) Salary
fsom employee. table.Out pot 2
T
Dome Ta 2a Pee dept
|Aohish \ | loooo og
| |
[Noho 2 | l0000 ZT
[Rajeev | 2 | looo G.
+
UY+ fom table Name
= “This dott statement setrieves
jeoettion “dota. __in a stosed manne».
columo are __sosted .
Sapeh select same id, id y-oolosy pdepk from employe
Desert [Tho delete command delete
ne —Fsom— the _ table that — pacify
fon oeavide doe Pees hoe eee eee
SwHteRe clnese ca ee er eee
Sees seganding tre how _ many i
hp we been deleted. _Owlpul
id fame dept | galas y
| ) | Kohigh o% | \0000
|
» Kojooy oo | 30000
Output +5 Delete semployons “tame belongs
yonP to IT _dopt . — .
: Delete ftom employee, whose.” op =
ps male “ommend will a the,
oe able) __ comple
~Seoosds connot bey
"Foun cate Operations .
iS equivalent +5 the
—commond ww} thout WHERE clause.
pdatically both ave dif fexsent .
apa Teuncote., the employee tobler
table employee 3Output * Table: Dsopped
/‘seating oO table
“gyntoxt Drop table _
. ~toble name.
“Deseniption 3sThe “d8op. - table Penman drops
lols “seconde Q the |
thy Shute
\ deleted coved . —
Th A 4+ ener ore ore
is be - —
PY Bwcoverad ,
table employe ee
Ea + Remase
ample with — —dota held.
along