Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Use Oracle to define a function to judge whether the three integers passed in can form a triangle.
Use Oracle to define a function to judge whether the three integers passed in can form a triangle.
-Create a function

Create? Or? Replace? Function? testFunc? (num 1? Are you online? Number,? num2? Are you online? Numbers, num3 Are you online? Number)?

Return? varchar2

As?

Start?

What if? num 1+num 2 & gt; ? num3? then what

Return? Yes'; ?

Or what?

Return? "no";

End? If;

End; ?

-Use the function

Choice? testFunc? (3,4,5)? From where? double