I MAKE MISTAKE IN CODE
I HAVE NOW ' RN 001 2023' AND NEED TO BE 'RN 001 2023'
Have 1 empty character on start
Hot to remove that?
I have some code but he remove all empty spaces
Need to remove first char because is empty
I try this but taht remove all empty spaces
update dbo.work set work_name=REPLACE(work_name, ' ', ' ')
Jignesh KumarPosted Jan 18, 2023, 7:59 AM
You can use TRIM() function of SQL,
For Start Only LTRIM(work_name)
For end Only LTRIM(work_name)
For start and End Both then TRIM(work_name)
Naimish MakwanaPosted Jan 18, 2023, 8:08 AM
Hello Goran,
To remove first empty char in field. You can do as below.
Sample of remove first blank space from value.
Thanks
Naimish Makwana
Vishal JoshiPosted Jan 18, 2023, 7:34 AM
Hello
Try SQL Server TRIM() Function
Please try the below query to remove space.
Thanks
Goran BibicPosted Jan 18, 2023, 7:32 AM
I need to remove first emty char in field
Instead ' RN 001 2023' AND NEED TO BE 'RN 001 2023'
Naimish MakwanaPosted Jan 18, 2023, 7:14 AM
Hello Goran,
Please try the below solution.
Sample of remove space from value.
Thanks