Answers for "how to remove character in sql"

SQL
5

sql remove characters from string right

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
0

sql delete caracter list

UPDATE table_name
SET field_name = replace(field_name, 'X', 'Y');
Posted by: Guest on November-19-2020

Code answers related to "how to remove character in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language