Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Home
MySQL Tutorial
Introduction
Select Query
Database
Table
Table Join
Subquery
Insert Update Delete
Logic Operator
View
Data Types
Procedure Function
Cursor
Trigger
Date Time Functions
Comparison Functions Operators
Aggregate Functions
Cast Functions Operators
Control Flow Functions
Encryption Compression Functions
Information Functions
Math Numeric Functions
Miscellaneous Functions
String Functions
Regular Expressions
Data Dictionary
MySQL Utilities
Privilege
TRIM « String Functions « MySQL Tutorial
MySQL Tutorial
String Functions
TRIM
23.44.TRIM
23.44.1.
TRIM([{BOTH | LEADING | TRAILING} [remstr] FROM] str), TRIM([remstr FROM] str)
23.44.2.
TRIM(LEADING 'x' FROM 'xxxhava2sxxx');
23.44.3.
TRIM(BOTH 'x' FROM 'xxxjava2sxxx');
23.44.4.
TRIM(TRAILING 'xyz' FROM 'java2sxxyz');
23.44.5.
The TRIM() function can trim spaces and characters or groups of characters.
23.44.6.
SELECT TRIM(LEADING 'XXX' FROM 'XXXFileName')
23.44.7.
If you wanted to trim leading and trailing characters, you would use the keyword BOTH