Results 1 to 4 of 4

Thread: Trim

  1. #1
    Join Date
    Nov 2006
    Posts
    1

    Trim or compress script in sql

    Hi there,
    Could somebody tell me the script on how to trim or compress the data to get rid of a space in front of the value in sql language?
    Thank you
    Last edited by devon59; 11-29-2006 at 09:40 AM.

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    On which RDBMS?

  3. #3
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Try LTRIM.

  4. #4
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    Try these...

    select LTRIM(columnname) from tablename
    select TRIM(columnname) from tablename
    select LEFTTRIM(columnname) from tablename

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •