Home
Add Document
Sign In
Register
Cursor for Loops
Home
Cursor for Loops
Full description...
Author:
Catalina Achim
47 downloads
181 Views
57KB Size
Report
DOWNLOAD .PDF
Recommend Documents
Loops
Descripción: loop
Guidelines for Common Control Loops
Guidelines for Common Control Loops
Cursor Ga
siloDescripción completa
Current Loops
Open Loops
Productivity
Ground Loops
Grounding issues in instrumentation
dirty loops
baby
Dirty Loops
BabyFull description
Dirty Loops
Baby
Dirty Loops
Baby
Cursor 13 Iveco Calibracion
Descrição completa
Cursor 13 Iveco Calibracion
Using Explicit Cursor Attributes
Full description
140517471-cursor-121113120004-phpapp02
140517471-cursor-121113120004-phpapp02
cursor-121113120004-phpapp02
Cursor 13 Iveco Calibracion
cursor-121113120004-phpapp02
Bab 10 Expansion Loops
60393125C_ Eurotrakker Cursor 8-13_Eléctrico
Manual De Taller Motor CURSOR 8-12
4.4.1 Routing loops
redesDescripción completa
Expansion Joints & Loops
Yigal Mesika - Loops
loops instruction sheet
Dirty Loops Circus
Full description
Loops I Flute Solo
Hurel flute soloFull description
Test:Quiz:CursorFORLoops 1. Wha What tis isw wro rong ngw wit ith hth the efo foll llow owin ing gpi piec ece eof ofc cod ode? e? BEGIN FORemp_recordINemp_cursorLOOP DBMS_OUTPUT.PUT_LINE(emp_record.last_name); ENDLOOP; IFemp_record.last_name='Patel'THEN... MarkforReview (1)Points
EMP_RECORDhasnotbeenexplicitlydeclared.
ThecursorhasnotbeenOPENed.
YoucannotreferenceEMP_RECORDoutsidetheloop.(*)
Itshouldread:DBMS_OUTPUT.PUT_LINE(emp_cursor.last_name);
Nothingiswrong,thecodewillexecutecorrectly.
Correct 2. You Youha have ved dec ecl lared areda ac cur urso sor ras asf fol ollo lows ws: : CURSORloc_cursISSELECT*FROMlocations; HowshouldyoucodeaFORlooptousethiscursor? MarkforReview (1)Points
FORloc_recIN1..loc_curs%ROWCOUNTLOOP...
WHILEloc_recINloc_cursLOOP...
FORloc_cursINloc_recLOOP...
IFloc_recINloc_cursLOOP...
FORloc_recINloc_cursLOOP...(*)
Correct 3. Look at the following code: DECLARE CURSORemp_cursorISSELECT*FROMemployees;
Trusted by over 1 million members
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
Trusted by over 1 million members
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
BEGIN FORemp_recordINemp_cursorLOOP DBMS_OUTPUT.PUT_LINE(--PointA--); ENDLOOP; END; Todisplaythesalaryofanemployee,whatcod Todisplaythesalary ofanemployee,whatcodeshouldyouwriteatPoi eshouldyouwriteatPointA? ntA? MarkforReview (1)Points
emp_record.salary(*)
emp_cursor.salary
employees.salary
emp_record.employees.salary
TO_CHAR(salary)
Correct 4. Whi Which cho one neo of fth the efo foll llow owin ing gis isa av val alid idc cur urso sor rFO FOR Rlo loop opw wit ith ha asu subq bque uery ry? ? MarkforReview (1)Points
FORemp_recIN(SELECTlast_name||first_name FORemp_recIN(SELECT last_name||first_nameFROMemployees)LOOP... FROMemployees)LOOP...
FORemp_recIN(SELECTUPPER(last_name)FROMe FORemp_recIN(SELECT UPPER(last_name)FROMemployees)LOOP... mployees)LOOP...
FORemp_recINSELECTlast_name,salary*12"AN FORemp_recINSELECT last_name,salary*12"ANNSAL"FROMemployeesLOOP NSAL"FROMemployeesLOOP ...
FORemp_recIN(SELECTlast_name,salary*12"A FORemp_recIN(SELECT last_name,salary*12"ANNSAL"FROMemployees)LO NNSAL"FROMemployees)LOO O P...(*)
Noneoftheabove.
Correct
Trusted by over 1 million members
Try Scribd FREE for 30 days to access over 125 million titles without ads or interruptions! Start Free Trial Cancel Anytime.
True(*)
False
Correct 6. Wha What tis ist the heD DIS ISad adva vant ntag age eof ofu usi sing nga ac cur urso sor rFO FOR Rlo loop opw wit ith ha asu subq bque uery ry? ? MarkforReview (1)Points
Youcannotreferencecursorattributessuchas%NOTFOUND.(*)
Theexecutionspeedisslower.
Youcannotdeclarethecursorinthedeclarationsection.
Youcannotusethecursortojointwoormoretables.
Therearenodisadvantages.
Correct 7. Whi Which cho of fth the efo foll llow owin ing gis isa ab ben enef efit ito of fus usin ing ga acu curs rsor orF FOR ORl loo oop? p? MarkforReview (1)Points
Theexceptionhandlingisdoneautomatically..
TheOPEN,CLOSE,FETCHandEXITfromtheloop TheOPEN,CLOSE,FETCH andEXITfromthelooparedoneautomatically.( aredoneautomatically.(* * )
YoucanOPENthesamecursortwiceatthesametime.
Becausethereislesscode,theloopexecutesfaster.
%ROWCOUNTincrementsautomaticallyeachtimearowisFETCHed.
×
Report "Cursor for Loops"
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
×
Sign In
Email
Password
Remember me
Forgot password?
Sign In
Our partners will collect data and use cookies for ad personalization and measurement.
Learn how we and our ad partner Google, collect and use data
.
Agree & close