About 250,000 results
Open links in new tab
  1. STRING_SPLIT (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · Transact-SQL reference for the STRING_SPLIT function. This table-valued function splits a string into substrings based on a character delimiter.

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

    Jul 23, 2025 · In SQL, sometimes we get data that's all squished together, like a bunch of words separated by commas or other symbols. This article is all about learning how to do just that—take a …

  3. sql - How to split a comma-separated value to columns - Stack Overflow

    May 14, 2012 · STRING_SPLIT() is only really useful in SQL Server 2022 and above with the use of the enable_ordinal = 1 option. The STRING_SPLIT() results can then be used with a PIVOT or …

  4. 4 Ways to Split String by Delimiter in SQL – TechCult

    Jan 31, 2023 · Based on the comma (,) delimiter, this function will split the string value by default. But the condition is that you should specify the target delimiter for bytes. Example: Output: 2. If an empty …

  5. Split and Re-Aggregate Delimited Strings in SQL Server

    Aug 25, 2025 · Since SQL Server 2016, the easiest way to split is with the built-in function STRING_SPLIT(). For example, let’s say you’ve got a table that stores product categories as a …

  6. SQL String Splitting: Efficient Techniques and Solutions

    Jul 22, 2025 · However, there are instances where a single column might contain multiple values separated by a delimiter, such as a comma. Extracting these individual values into separate rows is a …

  7. SQL Query to Split a Comma-Separated String into Individual Rows

    Mar 17, 2025 · Good news: SQL can help you explode those comma-separated strings into clean individual rows. Imagine you have a table named FruitsList where each row contains a comma …

  8. How to Split a Comma-separated Value (CSV) into Columns in SQL?

    Apr 27, 2025 · In this blog, let’s explore multiple approaches to splitting comma-separated values into columns in SQL with examples for each. Table of Contents: There are methods like String-split, …

  9. SQL Server String Split: Handling Comma-Separated Values in …

    Learn how to efficiently use comma-separated strings in SQL Server's WHERE IN clause using STRING_SPLIT or a custom function. SQL Server String Split solutions for all versions.

  10. Split Delimited String into Columns in SQL Server

    Dec 30, 2024 · Breaking down the data into individual columns. The next step will be to parse out the three individual parts of the address that are separated by a comma.