Oracle LTRIM Function


/ Published in: SQL
Save to your folder(s)

A few examples of the Oracle LTRIM function.


Copy this code and paste it in your HTML
  1. SELECT LTRIM(' Complete IT Professional') AS LTRIM_EXAMPLE FROM DUAL;
  2.  
  3. SELECT LTRIM('___Complete IT Professional', '_') AS LTRIM_EXAMPLE FROM DUAL;
  4.  
  5. SELECT LTRIM('; ; ; ; ; Complete IT Professional', ' ; ') AS LTRIM_EXAMPLE FROM DUAL;
  6.  
  7. SELECT country, LTRIM(country, 'U') AS LTRIM_EXAMPLE FROM customers;
  8.  
  9. SELECT full_address, LTRIM(full_address, '1') AS LTRIM_EXAMPLE FROM customers;
  10.  
  11. SELECT LTRIM('000Complete IT Professional', 0) AS LTRIM_EXAMPLE FROM DUAL;
  12.  
  13. SELECT LTRIM(RTRIM('___Complete IT Professional__', '_'), '_') AS LTRIM_EXAMPLE FROM DUAL;
  14.  
  15. SELECT LTRIM('ééComplete IT Professional', 'é') AS LTRIM_EXAMPLE FROM DUAL;

URL: http://www.databasestar.com/oracle-ltrim/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.