单项选择题
Youarebuildingtwoforms.Eachformhasabuttonandanon-basetablefield.Whenthebuttonispressed,acomplicatedcalculationisexecuted.Thecalculationisthesameforbothforms.The calculationcodedoesnotqueryorchangethedatainthedatabase.Whenthecalculationcompletes,itreturnsasinglevaluetothenon-basetablefield.Tooptimizeperformanceandmaintainability,whichPL/SQLstructureshouldbeused?()
A.Atriggerineachform.
B.Asubprogramineachform.
C.Astoredsubprograminthedatabase.
D.Asubprograminalibrarythatisattachedtoeachform.
A.Eachformhasabuttonandanon-basetablefield.Whenthebuttonispressed,acomplicatedcalculationisexecuted.Thecalculationisthesameforbothforms.The
B.Whenthecalculationcompletes,itreturnsasinglevaluetothenon-basetablefield.Tooptimizeperformanceandmaintainability,whichPL/SQLstructureshouldbeused?()
A.Atriggerineachform.
C.Asubprogramineachform.
D.Astoredsubprograminthedatabase.
E.Asubprograminalibrarythatisattachedtoeachform.