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

    Syntax for SQL Server. SUBSTRING ( expression , start , length ) Syntax for Azure SQL Database, Azure SQL Managed Instance, Azure Synapse Analytics, Analytics Platform System (PDW), and Warehouse and SQL analytics endpoint in Microsoft Fabric.

  2. 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 number of characters to extract. Must be a positive number.

  3. 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: SUBSTRING (input_string, start_position, length)

  4. SQL Server SUBSTRING Function By Practical Examples

    In this tutorial, you will learn how to use the SQL Server SUBSTRING() function to extract a substring from a string.

  5. SUBSTRING, PATINDEX and CHARINDEX string functions in SQL

    Mar 1, 2021 · In this article, we explore SUBSTRING, PATINDEX, and CHARINDEX using examples. The SUBSTRING () function extracts the substring from the specified string based on the specified location. Syntax for SUBSTRING () function: SUBSTRING (expression, starting_position, length) starting_position: It contains an integer or bigint expression.

  6. 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 Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse. Syntax. The SQL SUBSTRING function syntax is: SUBSTRING(input_string, start, length); Parameters

  7. SUBSTRING () Function in SQL ServerSyntax 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.

  8. SQL SUBSTRING Function Use and Examples - MSSQLTips.com - SQL Server

    Jan 24, 2022 · The SUBSTRING function returns part of a string according to a start position and length provided. The following example will start show the substring starting at position 1 for a length of 5. If the start position is negative integer (as opposed to a positive integer), the substring still works fine and starts at a negative position.

  9. 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 need the string part from the specific starting index and with …

  10. T-SQL Substring function in SQL Server - T-SQL Tutorial

    The string function SUBSTRING has the role of extracting and returning characters from an expression. The type of expression can be: character, binary, text, ntext, or image. Syntax. The basic syntax of the SUBSTRING function is as follows: …

  11. Some results have been removed
Refresh