About 333,000 results
Open links in new tab
  1. SQL Server LEFT() Function - W3Schools

    The LEFT() function extracts a number of characters from a string (starting from left). Syntax

  2. LEFT (Transact-SQL) - SQL Server | Microsoft Learn

    Sep 3, 2024 · Using LEFT with a character string. The following example uses LEFT to return the two leftmost characters of the character string abcdefg. Here's the result set.

  3. SQL LEFT Function

    In SQL, the LEFT function takes a string and returns a specified number of characters from the beginning of a string. Here’s the syntax of the LEFT function: LEFT(STRING, number_of_characters) Code language: SQL (Structured Query Language) ( sql )

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

    The LEFT() function returns a substring consisting of the specified number of characters from the left side of the input string. The LEFT() function will return NULL if either of the arguments is NULL.

  5. SQL LEFT Function Use and Examples - MSSQLTips.com - SQL

    Nov 4, 2021 · Below is a simple example of the LEFT function returning the first 5 characters from the left. The next example is showing the first 2 characters of the column Firstname from the Person table. A common use of the LEFT function is when we get the position of a character using the CHARINDEX function.

  6. SQL LEFT Function - Online Tutorials Library

    Learn how to use the SQL LEFT function to extract a specified number of characters from the left side of a string. Explore examples and syntax for effective string manipulation.

  7. SQL LEFT function in queries - SQL Shack

    Oct 22, 2021 · In this article, we will learn how to use SQL LEFT function with straightforward examples. What is the SQL LEFT function? Most of the time we need to work with the character data types in our queries and we benefit from the built-in string functions in SQL Server to do this.

  8. SQL Server LEFT() Function: Returns Substring from Left

    In SQL Server, the LEFT () function returns the specified number of characters from the left side of the specified string.

  9. LEFT Function in SQL Server

    Nov 13, 2023 · In this SQL Server tutorial, you covered how to extract the characters from the left side of the given expression or value using the LEFT() function in SQL Server. Then how to apply the LEFT() function on the table column.

  10. SQL Habit | left () function in SQL

    Apr 13, 2024 · The syntax for the left() function is simple: This function takes two arguments: the string from which to extract characters, and the number of characters to extract from the left. Here’s a basic example without any table data: Run query.

  11. Some results have been removed
Refresh