خرید بک لینک

Vote count: 0

I exported data from an excel file. From that file, I have a column called 'ID'.For now that column has entries like the following.

ID
1.14455,

2.48755,

3.65588,

4.25415,

and so on.

I need to get rid of that comma from the column. How do I do it?

asked 3 mins ago

1 Answer

Vote count: 0

If there are no other commas in the values, then just use replace():

select replace(col, ',', '')

If there are possibly other commas:

select (case when col like '%,' then left(col, len(col) - 1)
             else col
        end)

answered 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 22 ارديبهشت 1395 ساعت: 19:15

صفحه بندی