Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

MSSQL Split String with delimiter

$
0
0

I want to split a string into two tables.

I have a table named event01_eventsummary. In this table a sample entry is: "Mr. Smith | Meeting with Mrs.Smith". 

Now I want the string before the delimiter (|) in the table event01_eventorganizer.

I know in MySQL I could use the MySQL SUBSTRING_INDEX() function. 

Anyone know how I could get this done? 


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>