Give me en example to use TRIM function in SQL.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Give me en example to use TRIM function in SQL..

In SQL string function TRIM. Syntax TRIM(string). I need a Query example of using TRIM function.

2nd Apr 2020, 10:23 AM
Aazad Waf 🌀
Aazad Waf 🌀 - avatar
2 Answers
+ 1
SELECT TRIM(' This string is padded with spaces '); Result: This string is padded with spaces NOTE: The trailing and leading spaces is removed from the result.
2nd Apr 2020, 10:44 AM
Ipang
+ 1
2nd Apr 2020, 10:49 AM
Aazad Waf 🌀
Aazad Waf 🌀 - avatar