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

    Extract 3 characters from a string (starting from left): The LEFT () function extracts a number of characters from a string (starting from left). Required. The string to extract from. Required. The number of characters to extract. If the number exceeds the number of characters in string, it …

  2. SQL LEFT Function - SQL Tutorial

    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: The LEFT function takes two parameters: string: The input string from which you want to return the character.

  3. 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.

  4. 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.

  5. SQL LEFT() String Function - Syntax, Examples [4] - Tutorial Kart

    In this tutorial, we will go through SQL LEFt() String function, its syntax, and how to use this function in SQL statements for string operations, with the help of well detailed examples. The basic syntax of the SQL LEFT() function is: Each part of this syntax has a specific purpose: string: The string from which you want to extract characters.

  6. SQL LEFT function in queries - SQL Shack

    Oct 22, 2021 · We can use the LEFT function to extract the characters of a table column. The following example returns the 4 leftmost characters of the FirstName column of the Person table. Literal strings are character expressions that are enclosed in single or double quotation marks.

  7. 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.

  8. How the LEFT() Function Works in SQL Server (T-SQL)

    In SQL Server, you can use the T-SQL LEFT() function to return a given number of characters from the left part of a string. The function accepts two arguments; the string itself, and the number of characters you’d like to be returned from that string. …

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

    In the following example, the LEFT() function is used to extract the left three digits of the phone number as the Area Code. In SQL Server, the LEFT () function returns the specified number of characters from the left side of the specified string.

  10. SQL Server: LEFT Function - TechOnTheNet

    This SQL Server tutorial explains how to use the LEFT function in SQL Server (Transact-SQL) with syntax and examples. In SQL Server (Transact-SQL), the LEFT function allows you to extract a substring from a string, starting from the left-most character. The syntax for the LEFT function in SQL Server (Transact-SQL) is:

  11. Some results have been removed
Refresh