Remove the longest string consisting only of bytes in bytes from the start and : btrim « String Functions « PostgreSQL






Remove the longest string consisting only of bytes in bytes from the start and

postgres=#
postgres=# -- btrim(string bytea, bytes bytea)
postgres=# -- Remove the longest string consisting only of bytes in bytes from the start and
postgres=# -- end of string
postgres=#
postgres=# select btrim('\\000trim\\000'::bytea, '\\000'::bytea);
 btrim
-------
 trim
(1 row)

postgres=#
postgres=#

           
       








Related examples in the same category

1.btrim(s [, t]): Returns character string s
2.btrim('123example 332', '123')