How to remove Spaces Left and Right side of Strings
Microsoft Net Framework

Left Trim& Right Trim

  Definition

 

The LTRIM & RTRIM function removes leading spaces from a string.

1 Left Trim

1.Select  (‘          Hello’)

There is a Multiple Spaces in the left side of string if we want to remove it we use [Left trim]  Write this Function

 Select  LTrim  (‘          Hello’)

When we Execute its return like this   [Hello]

2.Right Trim

There is a space in Right side of “Hello      ” use R trim Query to remove the space like this

Select Rtrim (‘Hello       ’)

 

When we Execute its return like this   [Hello]

 

Share This with your friend by choosing any social account


Upcoming Articles
You may also read following recent Post
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM