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

    Sep 3, 2024 · CHARINDEX performs comparisons based on the input collation. To perform a comparison in a specified collation, use COLLATE to apply an explicit collation to the input. The starting position returned is 1-based, not 0-based.

  2. SUBSTRING, PATINDEX and CHARINDEX string functions in SQL

    Mar 1, 2021 · CHARINDEX function in SQL queries. The CHARINDEX() function returns the substring position inside the specified string. It works reverse to the SUBSTRING function. The substring() returns the string from the starting position however the CHARINDEX returns the substring position. Syntax of CHARINDEX() function:

  3. SQL Server CHARINDEX() Function - W3Schools

    The CHARINDEX() function searches for a substring in a string, and returns the position. If the substring is not found, this function returns 0. Note: This function performs a case-insensitive search.

  4. SQL Server CHARINDEX() Function - SQL Server Tutorial

    Use the SQL Server CHARINDEX() function to search for a substring in a string starting from a specified location and return the position of the substring.

  5. SQL CHARINDEX Function Use and Examples - MSSQLTips.com - SQL Server

    Nov 2, 2021 · Simple CHARINDEX Example. Below is a simple example of using CHARINDEX. We will search for the word “test” in the longer string “This is a test”. SELECT CHARINDEX('test', 'This is a test')

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

    Feb 27, 2025 · SQL Server CHARINDEX function helps by quickly finding the position of a SQL Server substring. This makes it easier and faster to work with text in SQL. In this guide, we’ll explain how CHARINDEX() works, highlight its uses, and walk you through a few simple examples to help you grasp it easily.

  7. CHARINDEX Function in SQL Server

    Jan 4, 2024 · In this SQL Server tutorial, you will learn how to find the position of the substring in the string using the CHARINDEX function in SQL Server. First, you will understand ‘what the CHARINEDX() function’ with its syntax, then the working …

  8. SQL Server CHARINDEX(): A Comprehensive Guide with Examples

    Oct 27, 2024 · Learn everything you need to know about the SQL Server CHARINDEX() function. This comprehensive guide covers syntax, usage, examples, and important considerations for finding substrings within strings.

  9. SQL Server CHARINDEX Function Guide with Examples

    Sep 26, 2022 · The SQL CHARINDEX function can be used in SQL Server to find a string within another string. Learn how to use it and see some examples in this article.

  10. SQL Server CHARINDEX () Function (Transact-SQL) : Complete …

    May 25, 2024 · The CHARINDEX() function in SQL Server is used to find the starting position of a substring within a string. It returns the position of the first occurrence of a specified substring in a given string.

  11. Some results have been removed