SQL Trim Functions Remove White Space (Trim(), lTrim, rTrim)

Here is just another little way to remove white space.  Use SQL Trim(), lTrim() and rTrim().

SELECT Trim( '  Variable  ' );

Output: 'Variable'

SELECT lTrim( '  Variable  ' );

Output: 'Variable  '

SELECT rTrim( '  Variable  ' );

Output: '  Variable'

del.icio.us Digg StumbleUpon Facebook Google Bookmarks DZone
| View count: 15196
blog comments powered by Disqus