Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Diffenrence between NLS_UPPER and UPPER

I am new in PL/SQL Language. I saw there were 2 functions in PL/SQL: UPPER and NLS_UPPER. They both do the same thing. I want to know the difference between of these functions. thanks

like image 830
Farid Imranov Avatar asked Sep 26 '13 12:09

Farid Imranov


1 Answers

NLS_UPPER knows about locale specific rules

This query:

select nls_upper('ß', 'NLS_SORT = XGerman') as upper1, 
       upper('ß') as upper2
from dual;

returns the following:

UPPER1 | UPPER2
-------+-------
SS     | ß     

see the difference?

like image 85
a_horse_with_no_name Avatar answered Nov 12 '22 17:11

a_horse_with_no_name