This script demonstrates the Least functions : LEAST « Miscellaneous Functions « Oracle PL/SQL Tutorial






SQL> SET SERVEROUTPUT ON
SQL> DECLARE
  2     v_char VARCHAR2(10);
  3     v_number NUMBER(10);
  4  BEGIN
  5
  6
  7     v_char := LEAST('A', 'B', 'C');
  8     v_number := LEAST(1,2,3);
  9
 10     DBMS_OUTPUT.PUT_LINE('Least Character: '||v_char);
 11     DBMS_OUTPUT.PUT_LINE('Least Number: '||v_number);
 12
 13  END;
 14  /
Least Character: A
Least Number: 1

PL/SQL procedure successfully completed.

SQL>
SQL>








17.3.LEAST
17.3.1.Use the Least functions
17.3.2.select least(12*6,148/2,73)
17.3.3.This script demonstrates the Least functions
17.3.4.Use least() to limit the value