About 3,540 results
Open links in new tab
  1. sql - How to split a comma-separated value to columns - Stack Overflow

    May 14, 2012 · Substring(FullName, 1, Charindex(',', FullName)-1) as Name, Substring(FullName, Charindex(',', FullName)+1, LEN(FullName)) as Surname. There is no readymade Split …

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

    Oct 30, 2023 · STRING_SPLIT is a table-valued function that splits a string into rows of substrings, based on a specified separator character. STRING_SPLIT requires the …

  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. Turning a Comma Separated string into individual rows

    Basically split my data at the comma into individual rows? I am aware that storing a comma-separated string into a relational database sounds dumb, but the normal use case in the …

  5. Multiple rows to one comma-separated value in Sql Server

    If you are working on SQL Server 2017 or later versions, you can use built-in SQL Server Function STRING_AGG to create the comma delimited list: DECLARE @Table1 TABLE(ID …

  6. How to Turning a Comma Separated String into Individual Rows in SQL

    Apr 11, 2023 · To combine rows into a string in SQL Server, use the SQL COALESCE() function or the SQL CONCAT() function. COALESCE() function in SQL is used to handle null values. It …

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

    Jul 5, 2021 · Learn how to use a CTE, CROSS APPLY on XML, STRING_SPLIT() and a WHILE loop to convert delimited or comma-separated strings into individual rows in SQL Server.

  8. 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.

  9. SQL Server STRING_SPLIT Function - SQL Server Tutorial

    This tutorial shows you how to use the SQL Server STRING_SPLIT() function to split a string into a row of substrings based on a specified separator.

  10. How to Convert a Comma-Separated List into Rows in SQL Server

    May 8, 2018 · So basically, you need to split the list into its separate values, then insert each one of those values into a new row. T-SQL now has a STRING_SPLIT() function that makes this …

  11. Some results have been removed
Refresh