trim sql oracle

Solutions on MaxInterview for trim sql oracle by the best coders in the world

showing results for - "trim sql oracle"
Cassie
04 Jun 2019
1SELECT TRIM('   Exemple   ') FROM dual;						-- 'Exemple'
2SELECT LTRIM('   Exemple   ') FROM dual;					-- 'Exemple   '
3SELECT RTRIM('   Exemple   ') FROM dual;					-- '   Exemple'
4SELECT TRIM(BOTH 'x' FROM 'xxxExemplexxx') FROM dual;		-- 'Exemple'
5SELECT TRIM(LEADING 'x' FROM 'xxxExemplexxx') FROM dual;	-- 'Exemplexxx'
6SELECT LTRIM('xxxExemplexxx', 'x') FROM dual;				-- 'Exemplexxx'
7SELECT TRIM(TRAILING 'x' FROM 'xxxExemplexxx') FROM dual; 	-- 'xxxExemple'
8SELECT RTRIM('xxxExemple', 'x') FROM dual;					-- 'Exemplexxx'