Thursday, July 9, 2009

ORACLE String Function Reference

แปลง String เป็นตัวใหญ่ทั้งหมด (UPPERCASE)
SELECT UPPER('Super Louis') FROM dual;


แปลง String เป็นตัวเล็กทั้งหมด (LOWERCASE)
SELECT LOWER('Super Louis') FROM dual;


Function สำหรับ Concat String
SELECT 'String1 ' || 'String2 ' || dummy as concatString
FROM dual;

SELECT CONCAT(CONCAT('String1 ','String2 '),dummy) as concatString
FROM dual


More Information: http://www.psoug.org/reference/string_func.html

No comments:

Post a Comment