SQL Server Information and Resources Bookmark this page

SQLINFO.net is a Community Service from DataExpressions makers of dbOrchestra©

Google
 

 

 

 


Oracle Code Examples

SQL DML

String Functions

Stored Procedures

SQL Views

SQL Table Basics


Using the LTRIM() and RTRIM() Oracle Functions

Using RTRIM() to remove trailing spaces

SELECT  
        FIRSTNAME || ' ' || RTRIM(LASTNAME) AS "With RTRIM"        
FROM    STUDENTS
WHERE RowNum < 11

Using LTRIM() to remove leading spaces

SELECT  
        LTRIM(FIRSTNAME) AS "LTRIM"        
FROM    STUDENTS
WHERE RowNum < 11 

 

 



Copyright 2006-2007 by DataExpressions --- All Rights Reserved            dbOrchestra - Oracle home page