Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

Trim

Example

Remove spaces from both ends of a string.

SELECT Trim(”    SQL Tutorial    “AS TrimmedString;

Definition and Usage

The Trim() function eliminates spaces from both the beginning and end of a string.

Syntax

Trim(string)

Parameter Values

Parameter

Description

string

Required: The string from which leading and trailing spaces need to be removed.

Technical Details

Works in:

 From Access 2000