/ Published in: SQL
A few examples of the Oracle LTRIM function.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SELECT LTRIM(' Complete IT Professional') AS LTRIM_EXAMPLE FROM DUAL; SELECT LTRIM('___Complete IT Professional', '_') AS LTRIM_EXAMPLE FROM DUAL; SELECT LTRIM('; ; ; ; ; Complete IT Professional', ' ; ') AS LTRIM_EXAMPLE FROM DUAL; SELECT country, LTRIM(country, 'U') AS LTRIM_EXAMPLE FROM customers; SELECT full_address, LTRIM(full_address, '1') AS LTRIM_EXAMPLE FROM customers; SELECT LTRIM('000Complete IT Professional', 0) AS LTRIM_EXAMPLE FROM DUAL; SELECT LTRIM(RTRIM('___Complete IT Professional__', '_'), '_') AS LTRIM_EXAMPLE FROM DUAL; SELECT LTRIM('ééComplete IT Professional', 'é') AS LTRIM_EXAMPLE FROM DUAL;
URL: http://www.databasestar.com/oracle-ltrim/