About 5,150,000 results
Open links in new tab
  1. T-SQL split string based on delimiter - Stack Overflow

    Feb 14, 2014 · The general idea is to split out all of the characters in the string, determine the position of the delimiters, then obtain substrings relative to the delimiters. Here is a sample: -- …

  2. sql - How do I split a delimited string so I can access individual ...

    Nov 2, 2015 · You may find the solution in SQL User Defined Function to Parse a Delimited String helpful (from The Code Project). You can use this simple logic: IF PATINDEX('%|%', …

  3. How to Split a Delimited String to Access Individual Items in SQL?

    Mar 26, 2024 · SQL Server introduced the STRING_SPLIT function to directly split delimited strings into a table of values. It takes the input string and delimiter as parameters, returning a …

  4. sql - Extract characters to the right of a delimited value in a SELECT ...

    Sep 25, 2013 · If using SQL Server: SELECT column1 , RIGHT(column2,CHARINDEX('-',REVERSE(column2))-1) as extracted , column3 FROM myTable You can add a CASE …

  5. 4 Ways to Split String by Delimiter in SQL - TechCult

    Jan 31, 2023 · Method 2: SQL Server Split String. You can use the STRING_SPLIT() function in the SQL server to split a delimited string. Syntax: STRING_SPLIT (string , delimiter ) Example: …

  6. Split Delimited String into Columns in SQL Server

    Dec 30, 2024 · Learn how to parse or split SQL Server strings from one column into multiple columns using the parsename and other T-SQL functions.

  7. STRING_SPLIT (Transact-SQL) - SQL Server | Microsoft Learn

    Oct 30, 2023 · STRING_SPLIT inputs a string that has delimited substrings and inputs one character to use as the delimiter or separator. Optionally, the function supports a third …

  8. 4 ways to convert delimited string data into individual rows in SQL ...

    Jul 5, 2021 · Lets go through this step-by-step by first looking at why we are using LEFT() and STUFF(). LEFT() will basically extract the individual values from CSV strings that we'll then …

  9. sql server - Parse a string to find data between delimiters, …

    Jan 27, 2017 · Easy way is to create this split function and use SUBSTRING and CHARINDEX over the data returned by the function. @string NVARCHAR(MAX), . @delimiter CHAR(1) . …

  10. Parse delimited values in SQL Server with STRING_SPLIT

    Sep 24, 2020 · Have you ever needed to get values from a delimited string in SQL Server? This post will look at how to do this with the SQL Server function, STRING_SPLIT. Before the …

  11. Some results have been removed
Refresh