Index | Home | Forums
Oracle PL/SQL Example 2-5 Using Multi-Line Comments

Example 2-5 Using Multi-Line Comments

DECLARE
   some_condition BOOLEAN;
   pi NUMBER := 3.1415926; 
   radius NUMBER := 15; 
   area NUMBER;
BEGIN
  /* Perform some simple tests and assignments */
  IF 2 + 2 = 4 THEN
    some_condition := TRUE; /* We expect this THEN to always be performed */
  END IF;
  /* The following line computes the area of a circle using pi, which is the
     ratio between the circumference and diameter. After the area is computed,
     the result is displayed. */
  area := pi * radius**2;
  DBMS_OUTPUT.PUT_LINE('The area is: ' || TO_CHAR(area));
END;
/

This page was generated on/at Feb 23,2008 00:20:12
General comments and questions regarding this document should be sent by email to info@oracleabc.com or post your comments here




Index | Home | Forums
Oracle PL/SQL Example 2-5 Using Multi-Line Comments

Example 2-5 Using Multi-Line Comments

DECLARE
   some_condition BOOLEAN;
   pi NUMBER := 3.1415926; 
   radius NUMBER := 15; 
   area NUMBER;
BEGIN
  /* Perform some simple tests and assignments */
  IF 2 + 2 = 4 THEN
    some_condition := TRUE; /* We expect this THEN to always be performed */
  END IF;
  /* The following line computes the area of a circle using pi, which is the
     ratio between the circumference and diameter. After the area is computed,
     the result is displayed. */
  area := pi * radius**2;
  DBMS_OUTPUT.PUT_LINE('The area is: ' || TO_CHAR(area));
END;
/

This page was created by oracleabc.com on Feb 23,2008 00:09:02
General comments and questions regarding this document should be sent by email to info@oracleabc.com or post your comments here