Finding Trailing Spaces

  • Comments posted to this topic are about the item Finding Trailing Spaces

  • SQL string comparison always ignores trailing spaces.

    Therefore, fld1 <> TRIM(fld1) is equivalent to fld1 <> fld1.

    A comparison technique for detecting trailing spaces is to use LIKE '% '

    Searching for trailing spaces when the type is CHAR makes no sense, unless you are looking for a string shorter than the length of the cell.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply