Answers for "sql trim spaces"

SQL
5

sql remove spaces

SELECT TRIM('   Exemple   ');						-- 'Exemple'
SELECT LTRIM('   Exemple   ');						-- 'Exemple   '
SELECT RTRIM('   Exemple   ');						-- '   Exemple'
SELECT TRIM(BOTH 'x' FROM 'xxxExemplexxx');			-- 'Exemple'
SELECT TRIM(LEADING 'x' FROM 'xxxExemplexxx');		-- 'Exemplexxx'
SELECT LTRIM('xxxExemplexxx', 'x');					-- 'Exemplexxx'
SELECT TRIM(TRAILING 'x' FROM 'xxxExemplexxx'); 	-- 'xxxExemple'
SELECT RTRIM('xxxExemple', 'x');					-- 'Exemplexxx'
Posted by: Guest on May-12-2021
2

sql trim all spaces

Select TRIM (' Word  ')
Posted by: Guest on February-01-2021
0

SQL SERVER 2016 TRIM

-- Syntax for SQL Server and Azure SQL Database
TRIM ( [ characters FROM ] string )
Posted by: Guest on January-27-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language