Youarebuildingtwoforms.Eachformhasabuttonandanon-basetablefield.Whenthebuttonispressed,aco

21 查阅

Youarebuildingtwoforms.Eachformhasabuttonandanon-basetablefield.Whenthebuttonispressed,acomplicatedcalculationisexecuted.Thecalculationisthesameforbothforms.The calculationcodedoesnotqueryorchangethedatainthedatabase.Whenthecalculationcompletes,itreturnsasinglevaluetothenon-basetablefield.Tooptimizeperformanceandmaintainability,whichPL/SQLstructureshouldbeused?()

A.Atriggerineachform.

B.Asubprogramineachform.

C.Astoredsubprograminthedatabase.

D.Asubprograminalibrarythatisattachedtoeachform.

参考答案:

参考D

计算机考试