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

    Apr 16, 2025 · The SUBSTRING function returns a portion of a specified character, binary, text, or image expression.

  2. SQL Server equivalent of substring_index function in MySQL

    T-SQL Scalar function: CREATE FUNCTION dbo.SUBSTRING_INDEX ( @str NVARCHAR(4000), @delim NVARCHAR(1), @count INT ) RETURNS NVARCHAR(4000) …

  3. SUBSTRING, PATINDEX and CHARINDEX string functions in SQL

    Mar 1, 2021 · SQL Server provides many useful functions such as ASCII, CHAR, CHARINDEX, CONCAT, CONCAT_WS, REPLACE, STRING_AGG, UNICODE, UPPER for this purpose. In …

  4. SQL Server SUBSTRING() Function - W3Schools

    The SUBSTRING () function extracts some characters from a string. Required. The string to extract from. Required. The start position. The first position in string is 1. Required. The …

  5. SQL SUBSTRING Code Examples and Usage - MSSQLTips.com - SQL Server

    May 10, 2023 · The SQL Server SUBSTRING function extracts a portion of a string based on its starting position and length. The syntax for the SUBSTRING function is as follows: …

  6. SUBSTRING () Function in SQL Server — Syntax and Examples

    Feb 28, 2025 · Understand how to use the SQL Server SUBSTRING function for extracting text. Includes examples with tables, dynamic extractions and tips.

  7. SUBSTRING Function in SQL Server

    Jan 8, 2024 · The SUBSTRING function in SQL Server extracts the substring (characters) from the string (character expression) with a given length from the specified position. So, if you …

  8. How to Extract a Substring From a String in T-SQL

    To find the index of the specific character, you can use the CHARINDEX(character, column) function where character is the specific character at which you'd like to start the substring …

  9. SQL Server SUBSTRING() Function - GeeksforGeeks

    Jun 17, 2024 · The SQL Server SUBSTRING function extracts a substring from a string, starting at a specified position and with an optional length. The SUBSTRING function also works in …

  10. SUBSTRING_INDEX equivalent in SQL Server - Stack Overflow

    Apr 10, 2020 · On SQL Server 2016 and later, we can use STRING_SPLIT here: SELECT id, value AS name FROM yourTable CROSS APPLY STRING_SPLIT(name, ',') ORDER BY id, …

  11. Some results have been removed
Refresh