postgres trim string

Solutions on MaxInterview for postgres trim string by the best coders in the world

showing results for - "postgres trim string"
Adem
22 Feb 2016
1LTRIM(string, [character]);
2RTRIM(string, [character]);
3BTRIM(string, [character]);Code language: SQL (Structured Query Language) (sql)
Frieda
24 Aug 2019
1SELECT
2	TRIM (
3		LEADING
4		FROM
5			'  PostgreSQL TRIM'
6	),
7	TRIM (
8		TRAILING
9		FROM
10			'PostgreSQL TRIM   '
11	),
12	TRIM ('  PostgreSQL TRIM  ');
13Code language: SQL (Structured Query Language) (sql)
Paolo
18 Apr 2020
1SELECT
2	TRIM (
3		LEADING '0'
4		FROM
5			CAST (0009100 AS TEXT)
6	); -- 9100Code language: SQL (Structured Query Language) (sql)