About 21,500,000 results
Open links in new tab
  1. SQL LENGTH Function

    This tutorial shows you how to use the SQL LENGTH () function to get the number of characters in a given string.

  2. Using LENGTH () Function in SQL - GeeksforGeeks

    Apr 16, 2024 · SQL's LENGTH () function is about finding the character count in a string. This function comes in handy when you need to verify input lengths, format output or perform data …

  3. Number of times a particular character appears in a string

    Be advised the code solution for multi-char strings returns +1 when the sought after characters are at the end of the string. For example: set @myvar = 'lo Hello World, Hello World, lo lo' …

  4. SQL Server Count Characters in String

    Dec 20, 2023 · This SQL Server tutorial will teach you about SQL Server count characters in string. You will learn about the two methods, LEN () and DATELENGTH (), to count the …

  5. SQL Server LEN () Function - W3Schools

    Return the length of a string: The LEN () function returns the length of a string. Note: Trailing spaces at the end of the string is not included when calculating the length. However, leading …

  6. SQL Server: How to count occurrences of a substring in a string

    Nov 11, 2021 · This is the simplest case: the substring we want to count has a length of exactly one character. We can do it this way: LEN(summary) - LEN(REPLACE(summary, 'x', '')) AS …

  7. Counting Instances of Character in SQL Column - Baeldung

    Feb 27, 2025 · In this article, we showed how to count a character in a column in MySQL, PostgreSQL, and SQL Server. In all three SQL dialects, we can remove the character, …

  8. SQL Server LEN () Function: Count Characters in String

    In SQL Server, the LEN () function returns the total count of the characters of the specified input string, excluding the trailing spaces.

  9. How to count instances of character in SQL Column

    Apr 20, 2017 · I have an sql column that is a string of 100 'Y' or 'N' characters. For example: YYNYNYYNNNYYNY... What is the easiest way to get the count of all 'Y' symbols in each row.

  10. How to Check the Length of a String in SQL - LearnSQL.com

    To return specifically the number of characters in a string in MySQL, the CHAR_LENGTH() function is used. It has the same parameter as LENGTH: an input string. Verify and check the …

  11. Some results have been removed