About 4,460 results
Open links in new tab
  1. How to split the data from a single row into multiple rows in SQL ...

    May 21, 2021 · I used STRING_SPLIT() which is a table valued function supports SQL server 2016 and higher versions. You need to provide the formatted string into this function and use …

  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. sql - Split string put into an array - Stack Overflow

    Oct 28, 2014 · I am working on a SQL Server face problem which is splitting a string. I want to implement a function to split a string into an array: Declare @SQL as varchar(4000) Set …

  4. 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('%|%', …

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

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

  7. How to Split a String in SQL: Guide & Examples - Database Star

    Jun 2, 2023 · Splitting a string involves converting one string value into multiple values, one in each row. You can do this in each database: Oracle: REGEXP_SUBSTR and CONNECT BY; …

  8. The STRING_SPLIT function in SQL Server - SQL Shack

    Dec 3, 2018 · In this article, we will discuss the STRING_SPLIT function, in particular. The purpose of this built-in string function is to convert string arrays to columns which are …

  9. How to split string and save into an array in T-SQL

    In SQL Server 2016+ one can use STRING_SPLIT function. Now this will be easy: SELECT value FROM STRING_SPLIT('Red,Blue,Green,Yellow', ',');

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

    Mar 26, 2024 · Uses the STRING_SPLIT function to split the delimited strings into individual values. Orders the output by ID and SplitData for clarity. Each row includes the original ID …

  11. Some results have been removed
Refresh