About 536,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. LEN (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · Use LEN to return the number of characters encoded into a given string expression, and DATALENGTH to return the size in bytes for a given string expression. These outputs might differ …

  3. SQL Server LEN () Function - W3Schools

    Example Return the length of a string: SELECT LEN ('W3Schools.com'); Try it Yourself »

  4. Using LENGTH () Function in SQL - GeeksforGeeks

    Jul 23, 2025 · This article will examine how LENGTH () works about syntax, application, and best practices to give users of SQL a deeper knowledge of this powerful instrument used for various …

  5. SQL LENGTH () Function: Syntax, Usage, and Examples

    In MySQL, you might see both LENGTH() and CHAR_LENGTH(): LENGTH() returns the number of bytes. CHAR_LENGTH() returns the number of characters.

  6. SQL LEN Function Use and Examples - SQL Server Tips

    Apr 27, 2025 · Learn about the SQL Server LEN function to return the length of a string along with some examples of usage.

  7. Mastering the LENGTH Function in SQL: A Comprehensive Guide

    Supported across major databases like PostgreSQL, MySQL, SQL Server, and Oracle, LENGTH is a versatile function that’s easy to use and widely applicable. In this blog, we’ll dive into what LENGTH …