TRIM

Syntax

TRIM( string )

Description

Returns the string string without spaces at the beginning or end of the string.

Argument types:

  • stringString

Return type: String

Example

TRIM(" Computer ") = "Computer"

Data source support

ClickHouse 19.13, Microsoft SQL Server 2017 (14.0), MySQL 5.6, PostgreSQL 9.3.

Previous
Next