How to split string and insert values into table in SQL Server

前端 未结 8 649
青春惊慌失措
青春惊慌失措 2020-11-29 12:36

I have a string like this:

72594206916,2,1/2/08,Tacoma,WA:72594221856,5,5/7/13,San Francisco,CA:72594221871,99,12/30/12,Dallas,TX

This is b

8条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 12:53

    You forgot the last line. In your example, the 'TX' is not taken into account. You shuld check the remaining text avec While loop

提交回复
热议问题