How to split a string after specific character in SQL Server and update this value to specific column

前端 未结 8 1240
死守一世寂寞
死守一世寂寞 2020-12-01 09:59

I have table with data 1/1 to 1/20 in one column. I want the value 1 to 20 i.e value after \'/\'(front slash) is updated into other column in same

8条回答
  •  余生分开走
    2020-12-01 10:52

    I know this question is specific to sql server, but I'm using postgresql and came across this question, so for anybody else in a similar situation, there is the split_part(string text, delimiter text, field int) function.

提交回复
热议问题