SQL Server Information and Resources Bookmark this page

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

Google
 

 

 

 


MySQL Code Examples

SQL DML

String Functions

Stored Procedures

SQL Views

SQL Table Basics


Using the LTRIM() and RTRIM() MySQL Functions

Using RTRIM() to remove trailing spaces

SELECT  
        CONCAT(RTRIM(firstname),' ',lastname) AS "With RTRIM"
FROM    Students
LIMIT 10     

Using LTRIM() to remove leading spaces

SELECT  
        LTRIM(disenrollment_type)         
FROM    disenrollmentTypes  
LIMIT 10  

 

 



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