PLSQL | LOWER Function
The PLSQL LOWER function is used for converting all letters in the specified string to lowercase. If there are characters in the string that are not letters, they are unaffected by this function.
The char to be converted can be any of the datatypes such as CHAR, VARCHAR2, NCHAR, NVARCHAR2, CLOB, or NCLOB. The value returned by the LOWER function is the same datatype as char. The database sets the case of the characters based on the binary mapping defined for the underlying character set.
Syntax:
LOWER( string )
Parameters Used:
string – It is used to specify the string which needs to be converted.
Supported Versions of Oracle/PLSQL:
- Oracle 12c
- Oracle 11g
- Oracle 10g
- Oracle 9i
- Oracle 8i
Example-1:
DECLARE Test_String string(20) := 'Geeksforgeeks'; BEGIN dbms_output.put_line(LOWER(Test_String)); END;
Output:
geeksforgeeks
Example-2:
DECLARE
Test_String string(20) := 'GEEKSFORGEEKS';
BEGIN
dbms_output.put_line(LOWER(Test_String));
END;
Output:
geeksforgeeks
Example-3:
DECLARE
Test_String varchar2(30) := 'GEEKSFORGEEKS12345';
BEGIN
dbms_output.put_line(LOWER(Test_String));
END;
Output:
geeksforgeeks12345
Recommended Posts:
- PLSQL | TAN Function
- PLSQL | EXP Function
- PLSQL | CHR Function
- PLSQL | COS Function
- PLSQL | SIN Function
- PLSQL | ABS Function
- PLSQL | LN Function
- PLSQL | LEAST Function
- PLSQL | MOD Function
- PLSQL | LOG Function
- PLSQL | TANH Function
- PLSQL | LAST_DAY Function
- PLSQL | COSH Function
- PLSQL | EXTRACT Function
- PLSQL | DBTIMEZONE Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




