About 617,000 results
Open links in new tab
  1. sql server - How can I use LTRIM/RTRIM to search and replace …

    May 8, 2013 · The LTrim function to remove leading spaces and the RTrim function to remove trailing spaces from a string variable. It uses the Trim function to remove both types of spaces …

  2. Trim spaces in string - LTRIM RTRIM not working

    There are cases that the LTRIM RTRIM not doing what you want, to me, it happened because of the tab key when tab key inserted to a database we cant see it in our eyes in this cases trim …

  3. Remove Trailing Spaces and Update in Columns in SQL Server

    Try SELECT LTRIM(RTRIM('Amit Tech Corp ')) LTRIM - removes any leading spaces from left side of string RTRIM - removes any spaces from right In SQL Server 2017 or later: TRIM - …

  4. c++ - How can I trim a std::string? - Stack Overflow

    I'm currently using the following code to right-trim all the std::strings in my programs: std::string s; s.erase(s.find_last_not_of(" \\n\\r\\t") + 1); It works fine, but I wonder if there ...

  5. Difference between LTRIM and LTRIM with RTRIM [closed]

    Nov 4, 2020 · 2 ltrim() removes leading spaces from the string (spaces on the left side), rtrim() removes the trailing spaces. Cascading the two functions removes spaces on both ends.

  6. Removing leading zeroes from a field in a SQL statement

    Sep 18, 2008 · I am working on a SQL query that reads from a SQLServer database to produce an extract file. One of the requirements to remove the leading zeroes from a particular field, …

  7. Sql Server - Alternative of doing a RTRIM/LTRIM in the where clause

    select name from tblNames where Ltrim(RTrim(name)) <> '' I want to apply a trim on name in the where clause but I have read a few articles mentioning the performance issue of functions …

  8. How to trim a string in SQL Server before 2017? - Stack Overflow

    Oct 8, 2008 · 0 Or in the absence of TRIM () in the older versions, you could use LTRIM (RTRIM (somestring)) to achieve the desired result.

  9. ¿Como usar RTRIM y LTRIM en sql server?

    Aug 1, 2023 · ltrim() quita los espacios a la izquierda y rtrim() quita los espacios a la derecha. Ambas son funciones que devuelven la cadena recibida sin los espacios, por lo que la forma …

  10. string - TRIM RTRIM LTRIM Performance - Stack Overflow

    Nov 3, 2017 · 2 The question is irrelevant for SQL Server, since it implements LTRIM and RTRIM but not TRIM. See the list of SQL 2005 string functions.